MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/sql/schema.py:4734–4776  ·  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

4732 """A constraint that proxies a ColumnCollection."""
4733
4734 def __init__(
4735 self,
4736 *columns: _DDLColumnArgument,
4737 name: _ConstraintNameArgument = None,
4738 deferrable: Optional[bool] = None,
4739 initially: Optional[str] = None,
4740 info: Optional[_InfoType] = None,
4741 _autoattach: bool = True,
4742 _column_flag: bool = False,
4743 _gather_expressions: Optional[List[_DDLColumnArgument]] = None,
4744 **dialect_kw: Any,
4745 ) -> None:
4746 r"""
4747 :param \*columns:
4748 A sequence of column names or Column objects.
4749
4750 :param name:
4751 Optional, the in-database name of this constraint.
4752
4753 :param deferrable:
4754 Optional bool. If set, emit DEFERRABLE or NOT DEFERRABLE when
4755 issuing DDL for this constraint.
4756
4757 :param initially:
4758 Optional string. If set, emit INITIALLY <value> when issuing DDL
4759 for this constraint.
4760
4761 :param \**dialect_kw: other keyword arguments including
4762 dialect-specific arguments are propagated to the :class:`.Constraint`
4763 superclass.
4764
4765 """
4766 Constraint.__init__(
4767 self,
4768 name=name,
4769 deferrable=deferrable,
4770 initially=initially,
4771 info=info,
4772 **dialect_kw,
4773 )
4774 ColumnCollectionMixin.__init__(
4775 self, *columns, _autoattach=_autoattach, _column_flag=_column_flag
4776 )
4777
4778 columns: ReadOnlyColumnCollection[str, Column[Any]]
4779 """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