Currently, QSQL API contains dependent functions. For example, the methods listing errors/warnings, or translating to ERD call the main method toDDL() which builds the parse tree. A better design would be having a single method, constructing a composite object which includes all the information: the parse tree, the list of errors, the translated SQL code, and the ERD.
Currently, QSQL API contains dependent functions. For example, the methods listing errors/warnings, or translating to ERD call the main method
toDDL()
which builds the parse tree. A better design would be having a single method, constructing a composite object which includes all the information: the parse tree, the list of errors, the translated SQL code, and the ERD.