1 package SQL::Translator::Schema::Constants;
3 # ----------------------------------------------------------------------
4 # $Id: Constants.pm,v 1.43 2004-02-09 22:15:15 kycl4rk Exp $
5 # ----------------------------------------------------------------------
6 # Copyright (C) 2002-4 SQLFairy Authors
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.
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.
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
21 # -------------------------------------------------------------------
25 SQL::Translator::Schema::Constants - constants module
29 use SQL::Translator::Schema::Constants;
31 $table->add_constraint(
38 This module exports the following constants for Schema features;
63 use base qw( Exporter );
64 use vars qw( @EXPORT $VERSION );
66 $VERSION = sprintf "%d.%02d", q$Revision: 1.43 $ =~ /(\d+)\.(\d+)/;
80 # Because "CHECK" is a Perl keyword
82 use constant CHECK_C => 'CHECK';
84 use constant FOREIGN_KEY => 'FOREIGN KEY';
86 use constant FULL_TEXT => 'FULLTEXT';
88 use constant NOT_NULL => 'NOT NULL';
90 use constant NORMAL => 'NORMAL';
92 use constant NULL => 'NULL';
94 use constant PRIMARY_KEY => 'PRIMARY KEY';
96 use constant UNIQUE => 'UNIQUE';
100 # ----------------------------------------------------------------------
106 Ken Y. Clark E<lt>kclark@cpan.orgE<gt>.