From: Peter Rabbitson Date: Tue, 10 Feb 2009 10:18:09 +0000 (+0000) Subject: Finally make the indexer happy wrt SQL::Translator::Parser::DBIx::Class X-Git-Tag: v0.08011~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=07347109350c3408a216111ad341537208657929;p=dbsrgits%2FDBIx-Class.git Finally make the indexer happy wrt SQL::Translator::Parser::DBIx::Class Hide DBIx::Class::CDBICompat::ColumnGroups::GrouperShim (was never indexed to begin with) --- diff --git a/lib/DBIx/Class/CDBICompat/ColumnGroups.pm b/lib/DBIx/Class/CDBICompat/ColumnGroups.pm index 98e6508..107f3f4 100644 --- a/lib/DBIx/Class/CDBICompat/ColumnGroups.pm +++ b/lib/DBIx/Class/CDBICompat/ColumnGroups.pm @@ -73,7 +73,8 @@ sub _find_columns { return map { $class->find_column($_) } @col; } -package DBIx::Class::CDBICompat::ColumnGroups::GrouperShim; +package # hide from PAUSE + DBIx::Class::CDBICompat::ColumnGroups::GrouperShim; sub groups_for { my ($self, @cols) = @_; diff --git a/lib/SQL/Translator/Parser/DBIx/Class.pm b/lib/SQL/Translator/Parser/DBIx/Class.pm index ac91446..76444dc 100644 --- a/lib/SQL/Translator/Parser/DBIx/Class.pm +++ b/lib/SQL/Translator/Parser/DBIx/Class.pm @@ -11,7 +11,7 @@ use strict; use warnings; use vars qw($DEBUG $VERSION @EXPORT_OK); $DEBUG = 0 unless defined $DEBUG; -$VERSION = sprintf "%d.%02d", q$Revision 1.0$ =~ /(\d+)\.(\d+)/; +$VERSION = '1.10'; use Exporter; use Data::Dumper; @@ -183,3 +183,37 @@ 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