Schema

class lsst.daf.butler.Schema(spec=None)

Bases: object

The SQL schema for a Butler Registry.

Parameters:
spec : dict, optional

Dictionary mapping str name to TableSpec, as returned by SchemaConfig.toSpec. Will be constructed from default configuration if not provided.

Attributes:
metadata : sqlalchemy.MetaData

The sqlalchemy schema description.

tables : dict

A mapping from table or view name to the associated SQLAlchemy object. Note that this contains both true tables and views.

views : set

The names of entries in tables that are actually implemented as views.