X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FWriting.pm;h=99cd153b062a5cd4d33e9f1e7e57f200511effab;hb=242c152546ea957bee6a11f50568db056c4d2df9;hp=64b5df16c06484aac6f3403083f00d14ca97ffd4;hpb=be80bba7041914683ec2afd00aaa54d6459cbaee;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 64b5df1..99cd153 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm @@ -1,7 +1,7 @@ package DBIx::Class::Schema::Loader::DBI::Writing; use strict; -our $VERSION = '0.04999_10'; +our $VERSION = '0.07038'; # Empty. POD only. @@ -18,8 +18,7 @@ DBIx::Class::Schema::Loader::DBI::Writing - Loader subclass writing guide for DB use strict; use warnings; use base 'DBIx::Class::Schema::Loader::DBI'; - use Carp::Clan qw/^DBIx::Class/; - use Class::C3; + use mro 'c3'; sub _table_uniq_info { my ($self, $table) = @_; @@ -38,6 +37,16 @@ DBIx::Class::Schema::Loader::DBI::Writing - Loader subclass writing guide for DB # concatenated if you wish. } + sub _table_comment { + my ( $self, $table ) = @_; + return 'Comment'; + } + + sub _column_comment { + my ( $self, $table, $column_number ) = @_; + return 'Col. comment'; + } + 1; =head1 DETAILS @@ -53,9 +62,12 @@ likely want to override are: C<_table_pk_info>, C<_table_fk_info>, C<_tables_list> and C<_extra_column_info>. See the included DBD drivers for examples of these. +To import comments from the database you need to implement C<_table_comment>, +C<_column_comment> + =head1 AUTHOR -See L. +See L and L. =head1 LICENSE