MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/sql/schema.py:4354–4396  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected