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

Method _bind_param

lib/sqlalchemy/sql/elements.py:1541–1556  ·  view source on GitHub ↗
(
        self,
        operator: operators.OperatorType,
        obj: Any,
        type_: Optional[TypeEngine[_T]] = None,
        expanding: bool = False,
    )

Source from the content-addressed store, hash-verified

1539 return op(other, self.comparator, **kwargs) # type: ignore[no-any-return] # noqa: E501
1540
1541 def _bind_param(
1542 self,
1543 operator: operators.OperatorType,
1544 obj: Any,
1545 type_: Optional[TypeEngine[_T]] = None,
1546 expanding: bool = False,
1547 ) -> BindParameter[_T]:
1548 return BindParameter(
1549 None,
1550 obj,
1551 _compared_to_operator=operator,
1552 type_=type_,
1553 _compared_to_type=self.type,
1554 unique=True,
1555 expanding=expanding,
1556 )
1557
1558 @property
1559 def expression(self) -> ColumnElement[Any]:

Callers

nothing calls this directly

Calls 1

BindParameterClass · 0.85

Tested by

no test coverage detected