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: object

Description of a single table schema.

Attributes Summary

description

Table description.

Methods Summary

from_felis(dm_table, columns)

Convert Felis table definition into instance of this class.

Attributes Documentation

description: str | None = None

Table description.

Methods Documentation

classmethod from_felis(dm_table: Table, columns: Mapping[str, Column]) Table

Convert Felis table definition into instance of this class.

Parameters:
dm_tablefelis.datamodel.Table

Felis table definition.

columnsMapping [str, Column]

Mapping of column ID to Column instance.

Returns:
tableTable

Converted table definition.