Schema#

class lsst.dax.apdb.schema_model.Schema(name: str, id: str, tables: list[~lsst.dax.apdb.schema_model.Table], version: ~felis.datamodel.SchemaVersion | None = None, description: str | None = None, annotations: ~collections.abc.Mapping[str, ~typing.Any] = <factory>)#

Bases: object

Complete schema description, collection of tables.

Attributes Summary

annotations

Additional annotations for this table.

description

Schema description.

id

Felis ID for this schema.

name

Schema name.

tables

Collection of table definitions.

version

Schema version description.

Methods Summary

from_felis(dm_schema)

Convert felis schema definition to instance of this class.

Attributes Documentation

annotations: Mapping[str, Any] = <dataclasses._MISSING_TYPE object>#

Additional annotations for this table.

description: str | None = None#

Schema description.

id: str = <dataclasses._MISSING_TYPE object>#

Felis ID for this schema.

name: str = <dataclasses._MISSING_TYPE object>#

Schema name.

tables: list[Table] = <dataclasses._MISSING_TYPE object>#

Collection of table definitions.

version: SchemaVersion | None = None#

Schema version description.

Methods Documentation

classmethod from_felis(dm_schema: Schema) Schema#

Convert felis schema definition to instance of this class.

Parameters#

dm_schemafelis.datamodel.Schema

Felis schema definition.

Returns#

schemaSchema

Converted schema definition.