[Bast-commits] r5066 -
DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx
renormalist at dev.catalyst.perl.org
renormalist at dev.catalyst.perl.org
Thu Nov 6 20:23:22 GMT 2008
Author: renormalist
Date: 2008-11-06 20:23:22 +0000 (Thu, 06 Nov 2008)
New Revision: 5066
Modified:
DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm
Log:
- pod documentation for SQL::Translator::Parser::DBIx::Class
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 2008-11-06 15:19:34 UTC (rev 5065)
+++ DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm 2008-11-06 20:23:22 UTC (rev 5066)
@@ -228,3 +228,38 @@
}
1;
+
+=head1 NAME
+
+SQL::Translator::Parser::DBIx::Class - Create a SQL::Translator schema
+from a DBIx::Class::Schema instance
+
+=head1 SYNOPSIS
+
+ use MyApp::Schema;
+ use SQL::Translator;
+
+ my $schema = MyApp::Schema->connect;
+ my $trans = SQL::Translator->new (
+ parser => 'SQL::Translator::Parser::DBIx::Class',
+ parser_args => { package => $schema },
+ producer => 'SQLite',
+ ) or die SQL::Translator->error;
+ my $out = $trans->translate() or die $trans->error;
+
+=head1 DESCRIPTION
+
+C<SQL::Translator::Parser::DBIx::Class> reads a DBIx::Class schema,
+interrogates the columns, and stuffs it all in an $sqlt_schema object.
+
+=head1 SEE ALSO
+
+SQL::Translator.
+
+=head1 AUTHORS
+
+Jess Robinson
+
+Matt S Trout
+
+Ash Berlin
More information about the Bast-commits
mailing list