r""" :param \*columns: A sequence of column names or Column objects. :param name: Optional, the in-database name of this constraint. :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT DEFERRABLE when issuing DDL for thi
(
self,
*columns: _DDLColumnArgument,
name: _ConstraintNameArgument = None,
deferrable: Optional[bool] = None,
initially: Optional[str] = None,
info: Optional[_InfoType] = None,
_autoattach: bool = True,
_column_flag: bool = False,
_gather_expressions: Optional[List[_DDLColumnArgument]] = None,
**dialect_kw: Any,
)
| 4352 | """A constraint that proxies a ColumnCollection.""" |
| 4353 | |
| 4354 | def __init__( |
| 4355 | self, |
| 4356 | *columns: _DDLColumnArgument, |
| 4357 | name: _ConstraintNameArgument = None, |
| 4358 | deferrable: Optional[bool] = None, |
| 4359 | initially: Optional[str] = None, |
| 4360 | info: Optional[_InfoType] = None, |
| 4361 | _autoattach: bool = True, |
| 4362 | _column_flag: bool = False, |
| 4363 | _gather_expressions: Optional[List[_DDLColumnArgument]] = None, |
| 4364 | **dialect_kw: Any, |
| 4365 | ) -> None: |
| 4366 | r""" |
| 4367 | :param \*columns: |
| 4368 | A sequence of column names or Column objects. |
| 4369 | |
| 4370 | :param name: |
| 4371 | Optional, the in-database name of this constraint. |
| 4372 | |
| 4373 | :param deferrable: |
| 4374 | Optional bool. If set, emit DEFERRABLE or NOT DEFERRABLE when |
| 4375 | issuing DDL for this constraint. |
| 4376 | |
| 4377 | :param initially: |
| 4378 | Optional string. If set, emit INITIALLY <value> when issuing DDL |
| 4379 | for this constraint. |
| 4380 | |
| 4381 | :param \**dialect_kw: other keyword arguments including |
| 4382 | dialect-specific arguments are propagated to the :class:`.Constraint` |
| 4383 | superclass. |
| 4384 | |
| 4385 | """ |
| 4386 | Constraint.__init__( |
| 4387 | self, |
| 4388 | name=name, |
| 4389 | deferrable=deferrable, |
| 4390 | initially=initially, |
| 4391 | info=info, |
| 4392 | **dialect_kw, |
| 4393 | ) |
| 4394 | ColumnCollectionMixin.__init__( |
| 4395 | self, *columns, _autoattach=_autoattach, _column_flag=_column_flag |
| 4396 | ) |
| 4397 | |
| 4398 | columns: ReadOnlyColumnCollection[str, Column[Any]] |
| 4399 | """A :class:`_expression.ColumnCollection` representing the set of columns |