Skip to content

Refactor Environment #15

Open
Open
@sbuberl

Description

@sbuberl

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.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions