1 package SQL::Translator::Producer;
3 # -------------------------------------------------------------------
4 # $Id: Producer.pm,v 1.4 2002-11-22 03:03:40 kycl4rk Exp $
5 # -------------------------------------------------------------------
6 # Copyright (C) 2002 Ken Y. Clark <kclark@cpan.org>,
7 # darren chamberlain <darren@cpan.org>
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation; version 2.
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 # -------------------------------------------------------------------
25 use vars qw($VERSION);
26 $VERSION = sprintf "%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/;
32 # -------------------------------------------------------------------
33 # A burnt child loves the fire.
35 # -------------------------------------------------------------------
41 SQL::Translator::Producer - base object for Producers
47 Producer modules designed to be used with SQL::Translator need to
48 implement a single function, called B<produce>. B<produce> will be
49 called with a data structure created by a SQL::Translator::Parser
50 subclass. It is expected to return a string containing a valid SQL
55 Ken Y. Clark E<lt>kclark@cpan.orgE<gt>