Mercurial > pub > Impl
view lib/IMPL/SQL/Schema/Constraint/Index.pm @ 414:ec6f2d389d1e ref20150831
working on IMPL::Config::Bag
author | cin |
---|---|
date | Fri, 02 Oct 2015 06:56:24 +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;