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

description

Schema description.

version

Schema version description.

Methods Summary

from_felis(dm_schema)

Convert felis schema definition to instance of this class.

Attributes Documentation

description: str | None = None

Schema description.

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.