in reply to DBIx::Class and Oracle
Check out DBIx::Class::Schema::Loader.
There is a method in there called make_schema_at that you can use to generate the full column definitions for your schema.
Here is some example code:
perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:./lib -e + 'make_schema_at("My::Schema", { debug => 1, db_schema => + "myschemaname", use_namespaces => 1, components => ["InflateColumn::DateTime"] }, ["dbi:Pg:host=localhost;dbname=mydbname", "user", "pass" + ])'
Hope this helps.
|
|---|