zut.sql.UniqueKey
- class zut.sql.UniqueKey(columns: str | Sequence[str], *, nulls: Literal['distinct', 'not-distinct'] | None = None)
Bases:
object- __init__(columns: str | Sequence[str], *, nulls: Literal['distinct', 'not-distinct'] | None = None)
Methods
__init__(columns, *[, nulls])Attributes
Unique column(s).
Indicate how are NULL values treated: as distinct entries (the default) or as not distinct (see https://www.postgresql.org/about/featurematrix/detail/392/).
- columns: Sequence[str]
Unique column(s).
- nulls: Literal['distinct', 'not-distinct'] | None
Indicate how are NULL values treated: as distinct entries (the default) or as not distinct (see https://www.postgresql.org/about/featurematrix/detail/392/).