Mercurial > pub > Impl
view lib/IMPL/SQL/Schema/Constraint/Index.pm @ 410:9335cf010b23 ref20150831
refactoring
author | cin |
---|---|
date | Mon, 14 Sep 2015 01:11:53 +0300 |
parents | c6e90e02dd17 |
children |
line wrap: on
line source
package IMPL::SQL::Schema::Constraint::Index; use strict; use parent qw(IMPL::SQL::Schema::Constraint); __PACKAGE__->PassThroughArgs; __PACKAGE__->RegisterAlias('index'); sub CTOR { my $this = shift; my %colnames; not grep { $colnames{$_}++ } $this->columns or die new Exception('Each column in the index can occur only once'); } 1;