| Alzabo documentation | view source | Contained in the Alzabo distribution. |
Alzabo::Create::ForeignKey - Foreign key objects for schema creation.
use Alzabo::Create::ForeignKey;
Alzabo::ForeignKey
The constructor takes the following parameters:
Alzabo::Create::Column object(s)Alzabo::Create::Column object(s)These two parameters may be either a single column or a reference to an array columns. The number of columns in the two parameters must match.
An optional comment.
It returns a new
Alzabo::Create::ForeignKey|Alzabo::Create::ForeignKey object.
Throws: Alzabo::Exception::Params|Alzabo::Exceptions
Alzabo::Create::Column object(s))Sets the column(s) that the relation is from. This can be either a single column object or a reference to an array of column objects.
Throws: Alzabo::Exception::Params|Alzabo::Exceptions
Alzabo::Create::Column object(s))Sets the column(s) that the relation is to. This can be either a single column object or a reference to an array of column objects.
Throws: Alzabo::Exception::Params|Alzabo::Exceptions
Sets the cardinality of the foreign key.
Throws: Alzabo::Exception::Params|Alzabo::Exceptions
Indicates whether or not the first table in the foreign key is dependent on the other (i.e. whether the 'from' table is dependent on the 'to' table).
Indicates whether or not the second table in the foreign key is dependent on the other (i.e. whether the 'to' table is dependent on the 'from' table).
Sets the comment for the foreign key object.
Dave Rolsky, <autarch@urth.org>
| Alzabo documentation | view source | Contained in the Alzabo distribution. |