makeDimensionElementTableSpec

lsst.daf.butler.makeDimensionElementTableSpec(element: DimensionElement) → ddl.TableSpec

Create a complete table specification for a DimensionElement.

This combines the foreign key fields from dependencies, unique keys for true Dimension instances, metadata fields, and region/timestamp fields for spatial/temporal elements.

Most callers should use DimensionElement.makeTableSpec or DimensionUniverse.makeSchemaSpec instead, which account for elements that have no table or reference another table.

Parameters:
element : DimensionElement

Element for which to make a table specification.

Returns:
spec : ddl.TableSpec

Database-agnostic specification for a table.