Package gensaschema :: Module _column :: Class Column
[frames] | no frames]

Class Column

source code

object --+
         |
        Column

Column container
Instance Methods
 
__init__(self, name, ctype, nullable, primary_key, autoincrement, server_default, symbols)
Initialization
source code
str
__repr__(self)
Make string representation
source code

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

Class Methods
Column
from_sa(cls, column, symbols)
Construct from SA column
source code
Properties

Inherited from object: __class__

Method Details

__init__(self, name, ctype, nullable, primary_key, autoincrement, server_default, symbols)
(Constructor)

source code 
Initialization
Parameters:
  • name (unicode) - Column name
  • ctype (SA type) - Column type
  • nullable (bool) - Nullable?
  • primary_key (bool) - Part of a primary key?
  • autoincrement (bool) - Possible autoincrement?
  • server_default (Default clause) - Default clause
Overrides: object.__init__

from_sa(cls, column, symbols)
Class Method

source code 
Construct from SA column
Parameters:
  • column (SA column) - SA column
Returns: Column
New column instance

__repr__(self)
(Representation operator)

source code 
Make string representation
Returns: str
The string representation
Overrides: object.__repr__