|
def | __init__ (self, sqlalchemy.engine.Engine engine, str dia_object_index, str htm_index_column, str schema_file, str schema_name="ApdbSchema", str prefix="", Optional[str] namespace=None) |
|
None | makeSchema (self, bool drop=False, str mysql_engine='InnoDB') |
|
def | __init__ (self, str schema_file, str schema_name="ApdbSchema") |
|
Union[type, str] | column_dtype (self, Type[felis.types.FelisType] felis_type) |
|
Class for management of APDB schema.
Attributes
----------
objects : `sqlalchemy.Table`
DiaObject table instance
objects_last : `sqlalchemy.Table`
DiaObjectLast table instance, may be None
sources : `sqlalchemy.Table`
DiaSource table instance
forcedSources : `sqlalchemy.Table`
DiaForcedSource table instance
Parameters
----------
engine : `sqlalchemy.engine.Engine`
SQLAlchemy engine instance
dia_object_index : `str`
Indexing mode for DiaObject table, see `ApdbSqlConfig.dia_object_index`
for details.
htm_index_column : `str`
Name of a HTM index column for DiaObject and DiaSource tables.
schema_file : `str`
Name of the YAML schema file.
schema_name : `str`, optional
Name of the schema in YAML files.
prefix : `str`, optional
Prefix to add to all scheam elements.
namespace : `str`, optional
Namespace (or schema name) to use for all APDB tables.