From: Jess Robinson Date: Tue, 10 Feb 2009 13:57:34 +0000 (+0000) Subject: More docs, pointing at using deploy/create_ddl_dir X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f26d4b9580b62ee17fc9855d1c313dabc572349b;p=dbsrgits%2FDBIx-Class-Historic.git More docs, pointing at using deploy/create_ddl_dir --- diff --git a/lib/SQL/Translator/Parser/DBIx/Class.pm b/lib/SQL/Translator/Parser/DBIx/Class.pm index cc8d5b6..2b408e2 100644 --- a/lib/SQL/Translator/Parser/DBIx/Class.pm +++ b/lib/SQL/Translator/Parser/DBIx/Class.pm @@ -234,6 +234,14 @@ from a DBIx::Class::Schema instance =head1 SYNOPSIS + ## Via DBIx::Class + use MyApp::Schema; + my $schema = MyApp::Schema->connect("dbi:SQLite:something.db"); + $schema->create_ddl_dir(); + ## or + $schema->deploy(); + + ## Standalone use MyApp::Schema; use SQL::Translator; @@ -247,12 +255,24 @@ from a DBIx::Class::Schema instance =head1 DESCRIPTION +This class requires L installed to work. + C reads a DBIx::Class schema, interrogates the columns, and stuffs it all in an $sqlt_schema object. +It's primary use is in deploying database layouts described as a set +of L classes, to a database. To do this, see the +L method. + +This can also be achieved by having DBIx::Class export the schema as a +set of SQL files ready for import into your database, or passed to +other machines that need to have your application installed but don't +have SQL::Translator installed. To do this see the +L method. + =head1 SEE ALSO -SQL::Translator. +L, L =head1 AUTHORS