Module DataMapper::Constraints::Adapters::DataObjectsAdapter
In: lib/data_mapper/constraints/adapters/do_adapter.rb

Methods

Included Modules

SQL

Classes and Modules

Module DataMapper::Constraints::Adapters::DataObjectsAdapter::SQL

Public Instance methods

Determine if a constraint exists for a table

@param storage_name [Symbol]

  name of table to check constraint on

@param constraint_name [~String]

  name of constraint to check for

@return [Boolean]

@api private

Create the constraint for a relationship

@param relationship [Relationship]

  the relationship to create the constraint for

@return [true, false]

  true if creating the constraints was successful

@api semipublic

Remove the constraint for a relationship

@param relationship [Relationship]

  the relationship to remove the constraint for

@return [true, false]

  true if destroying the constraint was successful

@api semipublic

[Validate]