Using Persephoneby Group Public on Friday August 15 2008 @ 13:51:32 (6/6 Points) |
|
| Tutorial ↪User Guide ✑ Reply ✓ Stick It ✗ Ditch It ⚐ Tag It |
Persephone is a two part framework. The first part is where you describe your schema and features, which will be processed by Persephone. Code will be generated by this step for you to use in your target language (PHP for now).
The next part is actually using this generated code, and the Persephone support framework in your program.
Most of the concepts and features of Persephone are part of the unit tests, therefore it is helpful to get those tests running→ to do your first experiments.
Generating Your Schema
Once you've created your schema→ you need to build the target language files. The command line to do so looks like the below:
python Persephone.py input.schema output_prefix/
Only PHP is supported now so PHP will be generated by default. The output_prefix/ is truly a prefix, so it needs the slash, but also may include actual filename prefixes.
The main output will be a "schema.inc" file which is to be included in your PHP files.
require_once "output_prefix/schema.inc";
Then you can use the generated entities.
Persephone Using Persephone
