Package gensaschema :: Module _constraint
[frames] | no frames]

Module _constraint

source code

Constraint inspection and representation.


Copyright: Copyright 2010 - 2016 André Malo or his licensors, as applicable

License:

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: André Malo

Classes
  Constraint
Reflected Constraint
  UniqueConstraint
Unique constraint
  PrimaryKeyConstraint
Primary Key constraint
  ForeignKeyConstraint
ForeignKey constraint
Functions
str
access_col(col)
Generate column access string (either as attribute or via dict access)
source code
Variables
  __doc__ = __doc__.encode('ascii').decode('unicode_escape')
  __package__ = 'gensaschema'
Function Details

access_col(col)

source code 
Generate column access string (either as attribute or via dict access)
Parameters:
  • col (SA Column) - Column
Returns: str
Access string

Variables Details

__doc__

Value:
__doc__.encode('ascii').decode('unicode_escape')

__package__

Value:
'gensaschema'