Mercurial > pub > Impl
view Lib/IMPL/SQL/Types.pm @ 37:c2e7f7c96bcd
performance improvements, DOM reworked (a little)
author | Sergey |
---|---|
date | Mon, 23 Nov 2009 00:59:06 +0300 |
parents | 0004faa276dc |
children | d660fb38b7cc |
line wrap: on
line source
package IMPL::SQL::Types; use strict; use warnings; require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw(&Integer &Varchar &Float &Real &Text &Binary); require IMPL::SQL::Schema::Type; sub Integer() { return IMPL::SQL::Schema::Type->new(Name => 'INTEGER'); } sub Varchar($) { return IMPL::SQL::Schema::Type->new(Name => 'VARCHAR', Length => shift); } sub Float($) { return IMPL::SQL::Schema::Type->new(Name => 'FLOAT', Scale => shift); } sub Real() { return IMPL::SQL::Schema::Type->new(Name => 'REAL'); } sub Text() { return IMPL::SQL::Schema::Type->new(Name => 'TEXT'); } sub Binary() { return IMPL::SQL::Schema::Type->new(Name => 'BINARY'); } 1;