annotate lib/IMPL/SQL/Schema/Constraint/Index.pm @ 423:60c2892a577c
 ref20150831 
working on base class system
 | author | cin | 
 | date | Mon, 02 Apr 2018 07:35:23 +0300 | 
 | parents | c6e90e02dd17 | 
 | children |  | 
 | rev | line source | 
  
| 407 | 1 package IMPL::SQL::Schema::Constraint::Index; | 
|  | 2 use strict; | 
|  | 3 use parent qw(IMPL::SQL::Schema::Constraint); | 
|  | 4 | 
|  | 5 __PACKAGE__->PassThroughArgs; | 
|  | 6 __PACKAGE__->RegisterAlias('index'); | 
|  | 7 | 
|  | 8 sub CTOR { | 
|  | 9     my $this = shift; | 
|  | 10 | 
|  | 11     my %colnames; | 
|  | 12     not grep { $colnames{$_}++ } $this->columns or die new Exception('Each column in the index can occur only once'); | 
|  | 13 } | 
|  | 14 | 
|  | 15 1; |