1 package SQL::Translator::Producer;
3 #-----------------------------------------------------
4 # $Id: Producer.pm,v 1.2 2002-03-21 18:50:53 dlc Exp $
5 #-----------------------------------------------------
6 # Copyright (C) 2002 Ken Y. Clark <kycl4rk@users.sourceforge.net>,
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.2 $ =~ /(\d+)\.(\d+)/;
32 #-----------------------------------------------------
33 # A burnt child loves the fire.
35 #-----------------------------------------------------
39 SQL::Translator::Producer - base object for Producers
46 Producer modules designed to be used with SQL::Translator need to
47 implement a single function, called B<produce>. B<produce> will be
48 called with a data structure created by a SQL::Translator::Parser
49 subclass. It is expected to return a string containing a valid SQL
54 Ken Y. Clark, kclark@logsoft.com