Package gensaschema :: Module _table :: Class TableCollection
[frames] | no frames]

Class TableCollection

source code

object --+    
         |    
     tuple --+
             |
            TableCollection

Table collection
Instance Methods

Inherited from tuple: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __rmul__, count, index

Inherited from object: __delattr__, __format__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
TableCollection
by_names(cls, metadata, names, schemas, symbols, types=None)
Construct by table names
source code
Properties

Inherited from object: __class__

Method Details

by_names(cls, metadata, names, schemas, symbols, types=None)
Class Method

source code 
Construct by table names
Parameters:
  • metadata (sqlalchemy.MetaData) - Metadata
  • names (iterable) - Name list (list of tuples (varname, name))
  • symbols (Symbols) - Symbol table
  • types (callable) - Extra type loader. If the type reflection fails, because SQLAlchemy cannot resolve it, the type loader will be called with the type name, (bound) metadata and the symbol table. It is responsible for modifying the symbols and imports and the dialect's ischema_names. If omitted or None, the reflector will always fail on unknown types.
Returns: TableCollection
New table collection instance