[Bast-commits] r5441 - DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx

castaway at dev.catalyst.perl.org castaway at dev.catalyst.perl.org
Tue Feb 10 13:57:34 GMT 2009


Author: castaway
Date: 2009-02-10 13:57:34 +0000 (Tue, 10 Feb 2009)
New Revision: 5441

Modified:
   DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm
Log:
More docs, pointing at using deploy/create_ddl_dir


Modified: DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm	2009-02-10 11:19:20 UTC (rev 5440)
+++ DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm	2009-02-10 13:57:34 UTC (rev 5441)
@@ -234,7 +234,15 @@
 
 =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;
  
  my $schema = MyApp::Schema->connect;
@@ -247,12 +255,24 @@
 
 =head1 DESCRIPTION
 
+This class requires L<SQL::Translator> installed to work.
+
 C<SQL::Translator::Parser::DBIx::Class> 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<DBIx::Class> classes, to a database. To do this, see the
+L<DBIx::Class::Schema/deploy> 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<DBIx::Class::Schema/create_ddl_dir> method.
+
 =head1 SEE ALSO
 
-SQL::Translator.
+L<SQL::Translator>, L<DBIx::Class::Schema>
 
 =head1 AUTHORS
 




More information about the Bast-commits mailing list