Mercurial > pub > Impl
view Lib/IMPL/SQL/Schema/MySQL/EnumType.pm @ 378:2eed076cb944
rewritten IMPL::Resources::Strings + tests
author | cin |
---|---|
date | Wed, 15 Jan 2014 17:20:54 +0400 |
parents | 56364d0c4b4f |
children |
line wrap: on
line source
package IMPL::SQL::Schema::MySQL::EnumType; use strict; use IMPL::Const qw(:prop); use IMPL::declare { base => [ 'IMPL::SQL::Schema::Type' => '@_' ], props => [ enumValues => PROP_RO | PROP_LIST ] }; our @ENUM_TYPES = qw(ENUM SET); sub CTOR { my $this = shift; die ArgException->new(name => "The specified name is invalid", $this->name) unless grep uc($this->name) eq $_, @ENUM_TYPES; } 1;