IndexSpec#

class lsst.daf.butler.ddl.IndexSpec(*columns: str, **kwargs: Any)#

Bases: object

Specification of an index on table columns.

Parameters#

*columnsstr

Names of the columns to index.

**kwargsAny

Additional keyword arguments to pass directly to sqlalchemy.schema.Index constructor. This could be used to provide backend-specific options, e.g. to create a GIST index in PostgreSQL one can pass postgresql_using="gist".

Attributes Summary

columns

Column names to include in the index (Tuple [ str ]).

kwargs

Additional keyword arguments passed directly to sqlalchemy.schema.Index constructor (dict [ str, Any ]).

Attributes Documentation

columns: tuple[str, ...] = <dataclasses._MISSING_TYPE object>#

Column names to include in the index (Tuple [ str ]).

kwargs: dict[str, Any] = <dataclasses._MISSING_TYPE object>#

Additional keyword arguments passed directly to sqlalchemy.schema.Index constructor (dict [ str, Any ]).