Table#
- class lsst.dax.apdb.schema_model.Table(name: str, id: str, columns: list[~lsst.dax.apdb.schema_model.Column], primary_key: list[~lsst.dax.apdb.schema_model.Column], constraints: list[~lsst.dax.apdb.schema_model.Constraint], indexes: list[~lsst.dax.apdb.schema_model.Index], description: str | None = None, annotations: ~collections.abc.Mapping[str, ~typing.Any] = <factory>)#
Bases:
objectDescription of a single table schema.
Attributes Summary
Additional annotations for this table.
List of Column instances.
List of Constraint instances, can be empty.
Table description.
Felis ID for this table.
List of Index instances, can be empty.
Table name.
List of Column that constitute a primary key, may be empty.
Methods Summary
from_felis(dm_table, columns)Convert Felis table definition into instance of this class.
Attributes Documentation
- annotations: Mapping[str, Any] = <dataclasses._MISSING_TYPE object>#
Additional annotations for this table.
- constraints: list[Constraint] = <dataclasses._MISSING_TYPE object>#
List of Constraint instances, can be empty.
- description: str | None = None#
Table description.
- id: str = <dataclasses._MISSING_TYPE object>#
Felis ID for this table.
- name: str = <dataclasses._MISSING_TYPE object>#
Table name.
- primary_key: list[Column] = <dataclasses._MISSING_TYPE object>#
List of Column that constitute a primary key, may be empty.
Methods Documentation