annotate Lib/IMPL/SQL/Types.pm @ 33:0004faa276dc

small fixes, some new tests
author Sergey
date Mon, 09 Nov 2009 16:49:39 +0300
parents
children d660fb38b7cc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
1 package IMPL::SQL::Types;
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
2 use strict;
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
3 use warnings;
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
4
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
5 require Exporter;
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
6 our @ISA = qw(Exporter);
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
7 our @EXPORT_OK = qw(&Integer &Varchar &Float &Real &Text &Binary);
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
8
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
9 require IMPL::SQL::Schema::Type;
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
10
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
11 sub Integer() {
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
12 return IMPL::SQL::Schema::Type->new(Name => 'INTEGER');
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
13 }
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
14
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
15 sub Varchar($) {
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
16 return IMPL::SQL::Schema::Type->new(Name => 'VARCHAR', Length => shift);
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
17 }
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
18
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
19 sub Float($) {
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
20 return IMPL::SQL::Schema::Type->new(Name => 'FLOAT', Scale => shift);
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
21 }
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
22
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
23 sub Real() {
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
24 return IMPL::SQL::Schema::Type->new(Name => 'REAL');
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
25 }
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
26
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
27 sub Text() {
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
28 return IMPL::SQL::Schema::Type->new(Name => 'TEXT');
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
29 }
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
30
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
31 sub Binary() {
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
32 return IMPL::SQL::Schema::Type->new(Name => 'BINARY');
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
33 }
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
34
0004faa276dc small fixes, some new tests
Sergey
parents:
diff changeset
35 1;