neuralib.sqlp.table.UniqueConstraint
- class neuralib.sqlp.table.UniqueConstraint[source]
Bases:
NamedTupleUniqueConstraint(name, table, fields, conflict)
- __init__()
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Alias for field number 3
associated fields
constraint name
associated table
- name: str
constraint name
- table: type
associated table
- fields: list[str]
associated fields
- conflict: Literal['rollback', 'abort', 'fail', 'ignore', 'replace'] | None
Alias for field number 3
- static __new__(_cls, name, table, fields, conflict)
Create new instance of UniqueConstraint(name, table, fields, conflict)
- Parameters:
name (str)
table (type)
fields (list[str])
conflict (CONFLICT_POLICY | None)