icomefromthenet / Faker

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

Write New Engine supports Entity/Value #23

Open icomefromthenet opened 11 years ago

icomefromthenet commented 11 years ago

The current faker engine uses a table/column with compiler, This engine can not be used for xml/json/yaml that does not fit the table/column structure.

This new engine will support instead an entity/value , with each entity being idempotent , in the place of foreign keys a cache extension will used.

Locale, random generators will be injected at construction and not by a compiler. This engine will not support the xml schema but use inline php as template.

Unlike the default engine this engine will by memory hungry and not suitable for long generator runs. This engine will not generate line by line but once per file requiring memory to represent the entire result.

This engine will be easier to use, with all construction done via a php class implementing the builder pattern.