All Schema objects now have an extra attribute. Added parsing support (and
[dbsrgits/SQL-Translator.git] / lib / SQL / Translator / Producer.pm
1 package SQL::Translator::Producer;
2
3 # -------------------------------------------------------------------
4 # $Id: Producer.pm,v 1.7 2004-02-09 23:04:26 kycl4rk Exp $
5 # -------------------------------------------------------------------
6 # Copyright (C) 2002-4 SQLFairy Authors
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; version 2.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 # 02111-1307  USA
21 # -------------------------------------------------------------------
22
23 use strict;
24 use vars qw($VERSION);
25 $VERSION = sprintf "%d.%02d", q$Revision: 1.7 $ =~ /(\d+)\.(\d+)/;
26
27 sub produce { "" }
28
29 1;
30
31 # -------------------------------------------------------------------
32 # A burnt child loves the fire.
33 # Oscar Wilde
34 # -------------------------------------------------------------------
35
36 =pod
37
38 =head1 NAME
39
40 SQL::Translator::Producer - describes how to write a producer
41
42 =head1 DESCRIPTION
43
44 Producer modules designed to be used with SQL::Translator need to
45 implement a single function, called B<produce>.  B<produce> will be
46 called with the SQL::Translator object from which it is expected to 
47 retrieve the SQL::Translator::Schema object which has been populated 
48 by the parser.  It is expected to return a string.
49
50 =head1 AUTHORS
51
52 Darren Chamberlain E<lt>darren@cpan.orgE<gt>,
53 Ken Y. Clark E<lt>kclark@cpan.orgE<gt>.
54
55 =head1 SEE ALSO
56
57 perl(1), SQL::Translator, SQL::Translator::Schema.
58
59 =cut