ApdbSchema¶
- class lsst.dax.apdb.ApdbSchema(schema_file: str, schema_name: str = 'ApdbSchema')¶
Bases:
object
Class for management of APDB schema.
- Parameters:
- Attributes:
- tableSchemas
dict
Maps table name to
TableDef
instance.
- tableSchemas
Methods Summary
column_dtype
(felis_type)Return Pandas data type for a given Felis column type.
Return schema version as defined in YAML schema file.
Methods Documentation
- column_dtype(felis_type: type[felis.types.FelisType]) type | str ¶
Return Pandas data type for a given Felis column type.
- schemaVersion() VersionTuple ¶
Return schema version as defined in YAML schema file.
- Returns:
- version
VersionTuple
Version number read from YAML file, if YAML file does not define schema version then “0.1.0” is returned.
- version