From: Ken Youens-Clark Date: Wed, 15 Oct 2003 19:09:15 +0000 (+0000) Subject: POD fixes. X-Git-Tag: v0.04~64 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=20770e440e301fdaed3315f56e2f87867081b54f;p=dbsrgits%2FSQL-Translator.git POD fixes. --- diff --git a/lib/SQL/Translator/Producer/POD.pm b/lib/SQL/Translator/Producer/POD.pm index 752c5ae..e692f3a 100644 --- a/lib/SQL/Translator/Producer/POD.pm +++ b/lib/SQL/Translator/Producer/POD.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::POD; # ------------------------------------------------------------------- -# $Id: POD.pm,v 1.3 2003-08-26 03:59:15 kycl4rk Exp $ +# $Id: POD.pm,v 1.4 2003-10-15 19:04:19 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark # @@ -20,9 +20,29 @@ package SQL::Translator::Producer::POD; # 02111-1307 USA # ------------------------------------------------------------------- +=head1 NAME + +SQL::Translator::Producer::POD - POD producer for SQL::Translator + +=head1 SYNOPSIS + + use SQL::Translator; + + my $t = SQL::Translator->new( parser => '...', producer => 'POD', '...' ); + print $t->translate; + +=head1 DESCRIPTION + +Creates a POD description of each table, field, index, and constraint. +A good starting point for text documentation of a schema. You can +easily convert the output to HTML or text using "perldoc" or other +interesting formats using Pod::POM or Template::Toolkit's POD plugin. + +=cut + use strict; use vars qw[ $VERSION ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/; use SQL::Translator::Schema::Constants; use SQL::Translator::Utils qw(header_comment); @@ -122,27 +142,14 @@ sub produce { # William Blake # ------------------------------------------------------------------- -=head1 NAME - -SQL::Translator::Producer::POD - POD producer for SQL::Translator - -=head1 SYNOPSIS - - use SQL::Translator::Producer::POD; - -=head1 DESCRIPTION - -Creates a POD description of each table, field, index, and constraint. -A good starting point for text documentation of a schema. You can -easily convert the output to HTML or text using "perldoc" or other -interesting formats using Pod::POM or Template::Toolkit. +=pod =head1 AUTHOR -Ken Y. Clark Ekclark@cpan.orgE +Ken Y. Clark Ekclark@cpan.orgE. =head1 SEE ALSO -perldoc, perlpod, Pod::POM, Template::Toolkit. +perldoc, perlpod, Pod::POM, Template::Manual::Plugins. =cut diff --git a/lib/SQL/Translator/Producer/PostgreSQL.pm b/lib/SQL/Translator/Producer/PostgreSQL.pm index f14c189..acb91d5 100644 --- a/lib/SQL/Translator/Producer/PostgreSQL.pm +++ b/lib/SQL/Translator/Producer/PostgreSQL.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::PostgreSQL; # ------------------------------------------------------------------- -# $Id: PostgreSQL.pm,v 1.19 2003-09-26 22:54:48 kycl4rk Exp $ +# $Id: PostgreSQL.pm,v 1.20 2003-10-15 19:07:13 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -26,11 +26,21 @@ package SQL::Translator::Producer::PostgreSQL; SQL::Translator::Producer::PostgreSQL - PostgreSQL producer for SQL::Translator +=head1 SYNOPSIS + + my $t = SQL::Translator->new( parser => '...', producer => 'PostgreSQL' ); + $t->translate; + +=head1 DESCRIPTION + +Creates a DDL suitable for PostgreSQL. Very heavily based on the Oracle +producer. + =cut use strict; use vars qw[ $DEBUG $WARN $VERSION ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.19 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.20 $ =~ /(\d+)\.(\d+)/; $DEBUG = 1 unless defined $DEBUG; use SQL::Translator::Schema::Constants; @@ -517,8 +527,12 @@ sub next_unused_name { =pod +=head1 SEE ALSO + +SQL::Translator, SQL::Translator::Producer::Oracle. + =head1 AUTHOR -Ken Y. Clark Ekclark@cpan.orgE +Ken Y. Clark Ekclark@cpan.orgE. =cut diff --git a/lib/SQL/Translator/Producer/SQLite.pm b/lib/SQL/Translator/Producer/SQLite.pm index 5e3a4c1..c3e6783 100644 --- a/lib/SQL/Translator/Producer/SQLite.pm +++ b/lib/SQL/Translator/Producer/SQLite.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::SQLite; # ------------------------------------------------------------------- -# $Id: SQLite.pm,v 1.8 2003-10-08 23:00:42 kycl4rk Exp $ +# $Id: SQLite.pm,v 1.9 2003-10-15 19:09:15 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -22,6 +22,23 @@ package SQL::Translator::Producer::SQLite; # 02111-1307 USA # ------------------------------------------------------------------- +=head1 NAME + +SQL::Translator::Producer::SQLite - SQLite producer for SQL::Translator + +=head1 SYNOPSIS + + use SQL::Translator; + + my $t = SQL::Translator->new( parser => '...', producer => 'SQLite' ); + $t->translate; + +=head1 DESCRIPTION + +This module will produce text output of the schema suitable for SQLite. + +=cut + use strict; use Data::Dumper; use SQL::Translator::Schema::Constants; @@ -29,7 +46,7 @@ use SQL::Translator::Utils qw(debug header_comment); use vars qw[ $VERSION $DEBUG $WARN ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.8 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; $WARN = 0 unless defined $WARN; @@ -225,10 +242,16 @@ sub mk_name { 1; -=head1 NAME +# ------------------------------------------------------------------- -SQL::Translator::Producer::SQLite - SQLite producer for SQL::Translator +=pod + +=head1 SEE ALSO + +SQL::Translator, http://www.sqlite.org/. =head1 AUTHOR -Ken Y. Clark Ekclark@cpan.orgE +Ken Y. Clark Ekclark@cpan.orgE. + +=cut