dbicdump1p
Dump a schema using dbix::class::schema::loader
Usage
dbicdump <configuration_file>
dbicdump [-I
<lib-path>]
[-o
<loader_option>=<value>]
\
Examples:
MyApp::Schema dbi:SQLite:./foo.db
MyApp::Schema dbi:SQLite:./foo.db
'
quote_char
=>
"\""
'
MyApp::Schema dbi:mysql:database=foo
user
pass
\
MyApp::Schema 'dbi:mysql:database=foo;host=domain.tld;port=3306'
\
user pass
On Windows
that
would
be:
MyApp::Schema dbi:mysql:database=foo
user
pass
^
schema_class MyApp::Schema
lib /extra/perl/libs
dsn dbi:mysql:example
user root
pass secret
dump_directory ./lib
components InflateColumn::DateTime
components TimeStamp
Overview
Dbicdump generates a DBIx::Class schema using "make_schema_at" in DBIx::Class::Schema::Loader and dumps it to disk.
You can pass any DBIx::Class::Schema::Loader::Base constructor option using "-o <option>=<value>". For convenience, option names will have "-" replaced with "_" and values that look like references or quote-like operators will be "eval"-ed before being passed to the constructor.
The "dump_directory" option defaults to the current directory if not specified.
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 6 times.