Fixed bug where it was truncating table name needlessly.
[dbsrgits/SQL-Translator.git] / lib / SQL / Translator / Producer.pm
CommitLineData
16dc9970 1package SQL::Translator::Producer;
2
49e1eb70 3# -------------------------------------------------------------------
d529894e 4# $Id: Producer.pm,v 1.4 2002-11-22 03:03:40 kycl4rk Exp $
49e1eb70 5# -------------------------------------------------------------------
d529894e 6# Copyright (C) 2002 Ken Y. Clark <kclark@cpan.org>,
077ebf34 7# darren chamberlain <darren@cpan.org>
8#
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.
16dc9970 12#
077ebf34 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.
16dc9970 17#
077ebf34 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
21# 02111-1307 USA
22# -------------------------------------------------------------------
23
24use strict;
25use vars qw($VERSION);
d529894e 26$VERSION = sprintf "%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/;
16dc9970 27
077ebf34 28sub produce { "" }
16dc9970 29
301;
31
49e1eb70 32# -------------------------------------------------------------------
16dc9970 33# A burnt child loves the fire.
34# Oscar Wilde
49e1eb70 35# -------------------------------------------------------------------
36
37=pod
16dc9970 38
39=head1 NAME
40
41SQL::Translator::Producer - base object for Producers
42
43=head1 SYNOPSIS
44
16dc9970 45=head1 DESCRIPTION
46
077ebf34 47Producer modules designed to be used with SQL::Translator need to
48implement a single function, called B<produce>. B<produce> will be
49called with a data structure created by a SQL::Translator::Parser
50subclass. It is expected to return a string containing a valid SQL
51create statement.
16dc9970 52
53=head1 AUTHOR
54
d529894e 55Ken Y. Clark E<lt>kclark@cpan.orgE<gt>
16dc9970 56
57=head1 SEE ALSO
58
59perl(1).
60
61=cut