Mercurial > pub > Impl
view lib/IMPL/SQL/Schema/MySQL/CharType.pm @ 415:3d24b10dd0d5 ref20150831
working on IMPL::Config::Container
author | cin |
---|---|
date | Tue, 20 Oct 2015 07:32:55 +0300 |
parents | c6e90e02dd17 |
children |
line wrap: on
line source
package IMPL::SQL::Schema::MySQL::CharType; use strict; use IMPL::Const qw(:prop); use IMPL::declare { require => { Exception => 'IMPL::Exception', ArgException => '-IMPL::InvalidArgumentException' }, base => [ 'IMPL::SQL::Schema::Type' => '@_' ], props => [ encoding => PROP_RO ] }; my @CHAR_TYPES = qw(VARCHAR CHAR); sub CTOR { my ($this) = @_; die ArgException->new(name => "The specified name is invalid", $this->name) unless grep uc($this->name) eq $_, @CHAR_TYPES; } 1;