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

Method _bind_param

lib/sqlalchemy/sql/functions.py:741–758  ·  view source on GitHub ↗
(
        self,
        operator: OperatorType,
        obj: Any,
        type_: Optional[TypeEngine[_T]] = None,
        expanding: bool = False,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

739 return s
740
741 def _bind_param(
742 self,
743 operator: OperatorType,
744 obj: Any,
745 type_: Optional[TypeEngine[_T]] = None,
746 expanding: bool = False,
747 **kw: Any,
748 ) -> BindParameter[_T]:
749 return BindParameter(
750 None,
751 obj,
752 _compared_to_operator=operator,
753 _compared_to_type=self.type,
754 unique=True,
755 type_=type_,
756 expanding=expanding,
757 **kw,
758 )
759
760 def self_group(self, against: Optional[OperatorType] = None) -> ClauseElement: # type: ignore[override] # noqa E501
761 # for the moment, we are parenthesizing all array-returning

Callers

nothing calls this directly

Calls 1

BindParameterClass · 0.85

Tested by

no test coverage detected