Made debugging work and it now exports its parse method.
[dbsrgits/SQL-Translator.git] / lib / SQL / Translator / Schema / Constants.pm
CommitLineData
0f3cc5c0 1package SQL::Translator::Schema::Constants;
2
3# ----------------------------------------------------------------------
aa3a9517 4# $Id: Constants.pm,v 1.5 2003-06-27 16:47:40 kycl4rk Exp $
0f3cc5c0 5# ----------------------------------------------------------------------
6# Copyright (C) 2003 Ken Y. Clark <kclark@cpan.org>
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=head1 NAME
24
25SQL::Translator::CMap::Constants - constants module
26
27=head1 SYNOPSIS
28
29 use SQL::Translator::CMap::Constants;
30
31 $table->add_constraint(
32 name => 'foo',
33 type => PRIMARY_KEY,
34 );
35
36=head1 DESCRIPTION
37
38This module exports a several constants to like "primary key," etc.
39
40=cut
41
42use strict;
43use base qw( Exporter );
44use vars qw( @EXPORT $VERSION );
45require Exporter;
aa3a9517 46$VERSION = sprintf "%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/;
0f3cc5c0 47
48@EXPORT = qw[
43b9dc7a 49 CHECK_C
50 FOREIGN_KEY
8ff0b2bc 51 FULL_TEXT
43b9dc7a 52 NOT_NULL
8ff0b2bc 53 NORMAL
43b9dc7a 54 NULL
0f3cc5c0 55 PRIMARY_KEY
43b9dc7a 56 UNIQUE
0f3cc5c0 57];
58
43b9dc7a 59#
60# Because "CHECK" is a Perl keyword
61#
62use constant CHECK_C => 'CHECK';
63
8ff0b2bc 64use constant FOREIGN_KEY => 'FOREIGN KEY';
43b9dc7a 65
a562f8d0 66use constant FULL_TEXT => 'FULLTEXT';
8ff0b2bc 67
68use constant NOT_NULL => 'NOT NULL';
69
70use constant NORMAL => 'NORMAL';
43b9dc7a 71
72use constant NULL => 'NULL';
73
8ff0b2bc 74use constant PRIMARY_KEY => 'PRIMARY KEY';
43b9dc7a 75
76use constant UNIQUE => 'UNIQUE';
0f3cc5c0 77
781;
79
80=pod
81
82=head1 AUTHOR
83
84Ken Y. Clark E<lt>kclark@cpan.orgE<gt>
85
86=head1 COPYRIGHT
87
88Copyright (c) 2003
89
90This library is free software; you can redistribute it and/or modify
91it under the same terms as Perl itself.
92
93=cut