change in mysql grammar
[dbsrgits/SQL-Translator-2.0-ish.git] / lib / SQL / Translator / Constants.pm
CommitLineData
27901cd5 1package SQL::Translator::Constants;
2use DBI qw(:sql_types);
d7cecc50 3use Sub::Exporter -setup => {
4 exports => [ @{$DBI::EXPORT_TAGS{sql_types}} ],
5 groups => {
03749994 6 sqlt_types => [ @{$DBI::EXPORT_TAGS{sql_types}} ],
7 sqlt_fk_actions => [ qw(SQLT_FK_CASCADE SQLT_FK_RESTRICT SQLT_FK_SET_NULL SQLT_FK_NO_ACTION SQLT_FK_SET_DEFAULT) ],
d7cecc50 8 }
9};
27901cd5 10
03749994 11use constant SQLT_FK_CASCADE => 0;
12use constant SQLT_FK_RESTRICT => 1;
13use constant SQLT_FK_SET_NULL => 2;
14use constant SQLT_FK_NO_ACTION => 3;
15use constant SQLT_FK_SET_DEFAULT => 4;
16
27901cd5 171;