X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FWriting.pm;h=d860143be6a2dc372dfb375280acbab0972374b3;hb=c52f11c91a8570f84daf2bfbbf60fa1ef3b32b5b;hp=02cd26d089c9138355c514db2b8bfdee33db9f62;hpb=7507c8ce0703993b79b31bf90144e28ef97d4a9d;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 02cd26d..d860143 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm @@ -1,12 +1,10 @@ package DBIx::Class::Schema::Loader::DBI::Writing; use strict; -our $VERSION = '0.04000'; +our $VERSION = '0.07042'; # Empty. POD only. -1; - =head1 NAME DBIx::Class::Schema::Loader::DBI::Writing - Loader subclass writing guide for DBI @@ -20,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) = @_; @@ -40,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 @@ -51,8 +58,21 @@ this information from DBI. The base DBI Loader contains generic methods that *should* work for everything else in theory, although in practice some DBDs need to override one or more of the other methods. The other methods one might -likely want to override are: C<_table_pk_info>, C<_table_fk_info>, and -C<_tables_list>. See the included DBD drivers for examples of these. +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 and L. + +=head1 LICENSE + +This library is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. =cut