dbicdump(1p)

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.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10–11
  6. 12
  7. 13

Authors

See "AUTHORS" in DBIx::Class::Schema::Loader.

License

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

From libdbix-class-schema-loader-perl 0.07053-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.