![]() |
![]()
| ![]() |
![]()
NAMEDBIx::DBSchema::ForeignKey - Foreign key objects SYNOPSISuse DBIx::DBSchema::ForeignKey; $foreign_key = new DBIx::DBSchema::ForeignKey ( { 'columns' => [ 'column_name' ], 'table' => 'foreign_table', } ); $foreign_key = new DBIx::DBSchema::ForeignKey ( { 'constraint' => 'constraint_name', 'columns' => [ 'column_name', 'column2' ], 'table' => 'foreign_table', 'references' => [ 'foreign_column', 'foreign_column2' ], 'match' => 'MATCH FULL', # or MATCH SIMPLE 'on_delete' => 'NO ACTION', # on clauses: NO ACTION / RESTRICT / 'on_update' => 'RESTRICT', # CASCADE / SET NULL / SET DEFAULT } ); DESCRIPTIONDBIx::DBSchema::ForeignKey objects represent a foreign key. METHODS
AUTHORIvan Kohler <ivan-dbix-dbschema@420.am> Copyright (c) 2013 Freeside Internet Services, Inc. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. BUGSShould give in and Mo or Moo. SEE ALSODBIx::DBSchema::Table, DBIx::DBSchema, DBI
|