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".