Package wsatools :: Package DbConnect :: Module Schema :: Class _Constraint
[hide private]

Class _Constraint

source code


A generic table constraint schema.

Instance Methods [hide private]
str
createSQL(self)
Returns: Full SQL line to create the object.
source code
str
dropSQL(self)
Returns: Full SQL line to drop the object.
source code

Inherited from _Schema: __cmp__, __str__, createCommand, parseName

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  identifier = 'CONSTRAINT'
SQL identifier for this type of db object.
  constraintType = ''
SQL ID for the specific type of constraint.
  attrList = ''
List of attribute names that make up this constraint.
  tableName = ''
Table that constraint applies to.
  withOpts = ''
WITH options e.g.

Inherited from _Schema: name, releasable, schemaFileName

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

createSQL(self)

source code 
Returns: str
Full SQL line to create the object.
Overrides: _Schema.createSQL

dropSQL(self)

source code 
Returns: str
Full SQL line to drop the object.
Overrides: _Schema.dropSQL

Class Variable Details [hide private]

withOpts

WITH options e.g. "NOCHECK".

Value:
''