Schema

class lsst.daf.butler.Schema(config=None, limited=False)

Bases: object

The SQL schema for a Butler Registry.

Parameters:
config : SchemaConfig or str, optional

Load configuration. Defaults will be read if config is not a SchemaConfig.

limited : bool

If True, ignore tables, views, and associated foreign keys whose config descriptions include a “limited” key set to False.

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

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