gensaschema._type module

Type inspection and representation

Type inspection and representation.

Copyright

Copyright 2010 - 2019 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

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.

class gensaschema._type.Type(ctype, dialect_name, symbols)

Type container

IVariables
_ctypeSA type

Column type

_dialectstr

Dialect name

_symbolsSymbols

Symbol table

__dict__ = mappingproxy({'__module__': 'gensaschema._type', '__doc__': '\n Type container\n\n :IVariables:\n `_ctype` : SA type\n Column type\n\n `_dialect` : ``str``\n Dialect name\n\n `_symbols` : ``Symbols``\n Symbol table\n ', '__init__': <function Type.__init__>, 'by_column': <classmethod object>, '__repr__': <function Type.__repr__>, '__dict__': <attribute '__dict__' of 'Type' objects>, '__weakref__': <attribute '__weakref__' of 'Type' objects>})
__init__(ctype, dialect_name, symbols)

Initialization

Parameters
ctypeSA type

Column type

dialect_namestr

Dialect name

symbolsSymbols

Symbol table

__module__ = 'gensaschema._type'
__repr__()

Make string representation

Return

The string representation

Rtype

str

__weakref__

list of weak references to the object (if defined)

classmethod by_column(column, symbols)

Construct by SA column

Parameters
columnSA column

SA column

Return

New Type instance

Rtype

Type