From: Steffen Schwigon Date: Thu, 6 Nov 2008 20:23:22 +0000 (+0000) Subject: pod documentation for SQL::Translator::Parser::DBIx::Class X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7232ce0792a137437be2328ae76876d3be46048a;p=dbsrgits%2FDBIx-Class-Historic.git pod documentation for SQL::Translator::Parser::DBIx::Class --- diff --git a/lib/SQL/Translator/Parser/DBIx/Class.pm b/lib/SQL/Translator/Parser/DBIx/Class.pm index ef7c51f..f44e1dd 100644 --- a/lib/SQL/Translator/Parser/DBIx/Class.pm +++ b/lib/SQL/Translator/Parser/DBIx/Class.pm @@ -228,3 +228,38 @@ sub parse { } 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 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