icomefromthenet / Faker

A Database Testing Tool.
Apache License 2.0
7 stars 2 forks source link

Compiler for the schema #5

Closed icomefromthenet closed 12 years ago

icomefromthenet commented 12 years ago

Currently using a builder / director (schema parser) to setup a schema composite, the process with the future addition of foreign key support will increase the complexity of the build. To help keep the code testable will abstract out the build process to also use a compiler.

The compiler will during the build phase, need to do for example the following.

(1) Inject foreign key columns. (2) Circular reference check. (3) Table reorder (prevent FK sequence errors).

This would be an internal tool and not available to extend in the user space (ext found in project folder).