line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SQL::Translator::Schema::Constants; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
SQL::Translator::Schema::Constants - constants module |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 SYNOPSIS |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use SQL::Translator::Schema::Constants; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
$table->add_constraint( |
12
|
|
|
|
|
|
|
name => 'foo', |
13
|
|
|
|
|
|
|
type => PRIMARY_KEY, |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 DESCRIPTION |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
This module exports the following constants for Schema features; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=over 4 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=item CHECK_C |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=item FOREIGN_KEY |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=item FULL_TEXT |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=item NOT_NULL |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item NORMAL |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item NULL |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item PRIMARY_KEY |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item UNIQUE |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=back |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
79
|
|
|
79
|
|
211220
|
use strict; |
|
79
|
|
|
|
|
192
|
|
|
79
|
|
|
|
|
2229
|
|
43
|
79
|
|
|
79
|
|
434
|
use warnings; |
|
79
|
|
|
|
|
213
|
|
|
79
|
|
|
|
|
2237
|
|
44
|
79
|
|
|
79
|
|
488
|
use base qw( Exporter ); |
|
79
|
|
|
|
|
202
|
|
|
79
|
|
|
|
|
13979
|
|
45
|
|
|
|
|
|
|
require Exporter; |
46
|
|
|
|
|
|
|
our $VERSION = '1.63'; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
our @EXPORT = qw[ |
49
|
|
|
|
|
|
|
CHECK_C |
50
|
|
|
|
|
|
|
FOREIGN_KEY |
51
|
|
|
|
|
|
|
FULL_TEXT |
52
|
|
|
|
|
|
|
SPATIAL |
53
|
|
|
|
|
|
|
NOT_NULL |
54
|
|
|
|
|
|
|
NORMAL |
55
|
|
|
|
|
|
|
NULL |
56
|
|
|
|
|
|
|
PRIMARY_KEY |
57
|
|
|
|
|
|
|
UNIQUE |
58
|
|
|
|
|
|
|
]; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
# |
61
|
|
|
|
|
|
|
# Because "CHECK" is a Perl keyword |
62
|
|
|
|
|
|
|
# |
63
|
79
|
|
|
79
|
|
692
|
use constant CHECK_C => 'CHECK'; |
|
79
|
|
|
|
|
208
|
|
|
79
|
|
|
|
|
7022
|
|
64
|
|
|
|
|
|
|
|
65
|
79
|
|
|
79
|
|
535
|
use constant FOREIGN_KEY => 'FOREIGN KEY'; |
|
79
|
|
|
|
|
226
|
|
|
79
|
|
|
|
|
4407
|
|
66
|
|
|
|
|
|
|
|
67
|
79
|
|
|
79
|
|
509
|
use constant FULL_TEXT => 'FULLTEXT'; |
|
79
|
|
|
|
|
307
|
|
|
79
|
|
|
|
|
4499
|
|
68
|
|
|
|
|
|
|
|
69
|
79
|
|
|
79
|
|
495
|
use constant SPATIAL => 'SPATIAL'; |
|
79
|
|
|
|
|
192
|
|
|
79
|
|
|
|
|
4269
|
|
70
|
|
|
|
|
|
|
|
71
|
79
|
|
|
79
|
|
825
|
use constant NOT_NULL => 'NOT NULL'; |
|
79
|
|
|
|
|
412
|
|
|
79
|
|
|
|
|
4148
|
|
72
|
|
|
|
|
|
|
|
73
|
79
|
|
|
79
|
|
470
|
use constant NORMAL => 'NORMAL'; |
|
79
|
|
|
|
|
184
|
|
|
79
|
|
|
|
|
4190
|
|
74
|
|
|
|
|
|
|
|
75
|
79
|
|
|
79
|
|
587
|
use constant NULL => 'NULL'; |
|
79
|
|
|
|
|
242
|
|
|
79
|
|
|
|
|
4192
|
|
76
|
|
|
|
|
|
|
|
77
|
79
|
|
|
79
|
|
519
|
use constant PRIMARY_KEY => 'PRIMARY KEY'; |
|
79
|
|
|
|
|
194
|
|
|
79
|
|
|
|
|
4360
|
|
78
|
|
|
|
|
|
|
|
79
|
79
|
|
|
79
|
|
489
|
use constant UNIQUE => 'UNIQUE'; |
|
79
|
|
|
|
|
235
|
|
|
79
|
|
|
|
|
4829
|
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
1; |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=pod |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 AUTHOR |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Ken Youens-Clark Ekclark@cpan.orgE. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |