neuralib.sqlp.table.CheckConstraint
- class neuralib.sqlp.table.CheckConstraint[source]
Bases:
NamedTupleSQL check constraint
- __init__()
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
checking expression
associated field's name.
constraint name
associated table
- static __new__(_cls, name, table, field, expression)
Create new instance of CheckConstraint(name, table, field, expression)
- Parameters:
name (str)
table (type)
field (str | None)
expression (SqlExpr)
- name: str
constraint name
- table: type
associated table
- field: str | None
associated field’s name.