From: Rafael Kitover Date: Fri, 26 Mar 2010 19:04:55 +0000 (-0400) Subject: update docs for passing loader_class to make_schema_at X-Git-Tag: 0.06000~28 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b486b265ad5cb135b3b90733b62d1143ce18665e;p=dbsrgits%2FDBIx-Class-Schema-Loader.git update docs for passing loader_class to make_schema_at --- diff --git a/lib/DBIx/Class/Schema/Loader.pm b/lib/DBIx/Class/Schema/Loader.pm index 3d85da8..f8a8f23 100644 --- a/lib/DBIx/Class/Schema/Loader.pm +++ b/lib/DBIx/Class/Schema/Loader.pm @@ -38,7 +38,7 @@ DBIx::Class::Schema::Loader - Dynamic definition of a DBIx::Class::Schema { debug => 1, dump_directory => './lib', }, - [ 'dbi:Pg:dbname="foo"', 'myuser', 'mypassword' ], + [ 'dbi:Pg:dbname="foo"', 'myuser', 'mypassword', { loader_class => 'MyLoader' } ], ); # from the command line or a shell script with dbicdump (distributed @@ -352,7 +352,7 @@ these Examples: make_schema_at( 'New::Schema::Name', { debug => 1 }, - [ 'dbi:Pg:dbname="foo"','postgres' ], + [ 'dbi:Pg:dbname="foo"','postgres','', { loader_class => 'MyLoader' } ], ); # Inside a script, specifying a dump directory in which to write @@ -361,9 +361,12 @@ these Examples: make_schema_at( 'New::Schema::Name', { debug => 1, dump_directory => './lib' }, - [ 'dbi:Pg:dbname="foo"','postgres' ], + [ 'dbi:Pg:dbname="foo"','postgres','', { loader_class => 'MyLoader' } ], ); +The last hashref in the C<\@connect_info> is checked for loader arguments such +as C and C, see L for more details. + =cut sub make_schema_at {