Mercurial > pub > Impl
view Lib/IMPL/SQL/Schema/Constraint/Index.pm @ 167:1f7a6d762394
SQL schema in progress
author | sourcer |
---|---|
date | Thu, 12 May 2011 08:57:19 +0400 |
parents | 76515373dac0 |
children | 6148f89bb7bf |
line wrap: on
line source
package IMPL::SQL::Schema::Constraint::Index; use strict; use parent qw(IMPL::SQL::Schema::Constraint); __PACKAGE__->PassThroughArgs; 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;