You need an example? It's just a method. There you go. This creates one schema object based on whatever is in your database.
To read a PostgreSQL database and create a schema that can be used by Alzabo. If you feel like it, it looks like there's a ->runtime_clone method on the Alzabo::Create::Schema object as well. You wouldn't use that for normal runtime but it might be convenient for your maintenance scripts.
my $schema = Alzabo::Create::Schema->reverse_engineer( name => ..., rdbms => "PostgreSQL", user => ..., password= > ... ); $schema->save_to_file; # I forget how the save directory is configured
Your runtime code:
my $schema = Alzabo::Runtime::Schema->load_from_file( name => ... );⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re^3: Non-retarded ORMs, and a general ORM discussions.
by diotalevi
in thread Non-retarded ORMs, and a general ORM discussions.
by EvanCarroll
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |