X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FWriting.pm;h=d404a7ada6a50624551f1d00306d8a297bc1d039;hb=306bf770bf08b06f92863808b1938f2fc704acb0;hp=be9ef870694e29a8b0809c84b2db53d129996cd7;hpb=f8c2ca5eac1d4782c1d5be369c9bd0dcf680cb9d;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm b/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm index be9ef87..d404a7a 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm @@ -2,53 +2,53 @@ package DBIx::Class::Schema::Loader::DBI::Writing; use strict; use warnings; -our $VERSION = '0.07043'; +our $VERSION = '0.07047'; # Empty. POD only. -=head1 NAME - +=head1 NAME + DBIx::Class::Schema::Loader::DBI::Writing - Loader subclass writing guide for DBI =head1 SYNOPSIS - package DBIx::Class::Schema::Loader::DBI::Foo; + package DBIx::Class::Schema::Loader::DBI::Foo; - # THIS IS JUST A TEMPLATE TO GET YOU STARTED. + # THIS IS JUST A TEMPLATE TO GET YOU STARTED. - use strict; - use warnings; - use base 'DBIx::Class::Schema::Loader::DBI'; - use mro 'c3'; + use strict; + use warnings; + use base 'DBIx::Class::Schema::Loader::DBI'; + use mro 'c3'; - sub _table_uniq_info { - my ($self, $table) = @_; + sub _table_uniq_info { + my ($self, $table) = @_; - # ... get UNIQUE info for $table somehow - # and return a data structure that looks like this: + # ... get UNIQUE info for $table somehow + # and return a data structure that looks like this: - return [ - [ 'keyname' => [ 'colname' ] ], - [ 'keyname2' => [ 'col1name', 'col2name' ] ], - [ 'keyname3' => [ 'colname' ] ], - ]; + return [ + [ 'keyname' => [ 'colname' ] ], + [ 'keyname2' => [ 'col1name', 'col2name' ] ], + [ 'keyname3' => [ 'colname' ] ], + ]; - # Where the "keyname"'s are just unique identifiers, such as the - # name of the unique constraint, or the names of the columns involved - # concatenated if you wish. - } + # Where the "keyname"'s are just unique identifiers, such as the + # name of the unique constraint, or the names of the columns involved + # concatenated if you wish. + } - sub _table_comment { - my ( $self, $table ) = @_; - return 'Comment'; - } + sub _table_comment { + my ( $self, $table ) = @_; + return 'Comment'; + } - sub _column_comment { - my ( $self, $table, $column_number ) = @_; - return 'Col. comment'; - } + sub _column_comment { + my ( $self, $table, $column_number ) = @_; + return 'Col. comment'; + } - 1; + 1; =head1 DETAILS