Class: Ramen::Metadata::KeyConstraint
- Inherits:
-
RowDataGateway
- Object
- RowDataGateway
- Ramen::Metadata::KeyConstraint
- Defined in:
- lib/ramen/metadata/key_constraint.rb
Overview
(KeyConstraint is left over from an earlier implementation of Ramen that was only concerned with Sql Server 2005. For now, the class has been stripped of features (code commented out). In the future, this will probably get transformed into a UniqueConstraint or simply Constraint class which is better suited for multiple database.)
KeyConstraint contains meta-data about key constraints within a Table. The attributes are database engine specific.
Only key_constraint_name and key_constraint_id are required by Ramen. See RowDataGateway for more information.
Reference Attributes:
- index
-
the index used by the key constraint.
See Database for a description of how ForeignKey fits in the Ramen collection hierarchy.
Links: readme.txt; source
Method Summary
Methods inherited from RowDataGateway
add_attributes, compare, #initialize
Constructor Details
This class inherits a constructor from Ramen::RowDataGateway