You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment is a mess. Last stable release this was all one php file (with less features).
In preparation for #10, first thing I want to do is separate the parsing and execution logic. The execution logic should go in classes in Statement classes. The parsing can stay in Environment for now. Right now, only all the Create queries and Insert have Statement classes.
While adding these Statement classes is a good time to add testing. Rather than adding unit tests for the Statement, add testing for the SQL command. See tests/SQL for example.
Once everything is in a Statement would to like pull out all the parsing logic in Environment into a new Parser class but not required.
The text was updated successfully, but these errors were encountered:
As right now, all the queries have been refactored into Statements and have tests. I just need to move the parser logic into a new class (or multiple?) and this will be done.
Environment is a mess. Last stable release this was all one php file (with less features).
In preparation for #10, first thing I want to do is separate the parsing and execution logic. The execution logic should go in classes in Statement classes. The parsing can stay in Environment for now. Right now, only all the Create queries and Insert have Statement classes.
While adding these Statement classes is a good time to add testing. Rather than adding unit tests for the Statement, add testing for the SQL command. See tests/SQL for example.
Once everything is in a Statement would to like pull out all the parsing logic in Environment into a new Parser class but not required.
The text was updated successfully, but these errors were encountered: