MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _bind_param

Method _bind_param

lib/sqlalchemy/sql/functions.py:782–799  ·  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

780 return s
781
782 def _bind_param(
783 self,
784 operator: OperatorType,
785 obj: Any,
786 type_: Optional[TypeEngine[_T]] = None,
787 expanding: bool = False,
788 **kw: Any,
789 ) -> BindParameter[_T]:
790 return BindParameter(
791 None,
792 obj,
793 _compared_to_operator=operator,
794 _compared_to_type=self.type,
795 unique=True,
796 type_=type_,
797 expanding=expanding,
798 **kw,
799 )
800
801 def self_group(self, against: Optional[OperatorType] = None) -> ClauseElement: # type: ignore[override] # noqa E501
802 # 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