view Lib/IMPL/SQL/Schema/Constraint/Index.pm @ 165:76515373dac0

Added Class::Template, Rewritten SQL::Schema 'use parent' directive instead of 'use base'
author wizard
date Sat, 23 Apr 2011 23:06:48 +0400
parents 16ada169ca75
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;