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

Method _bind_param

lib/sqlalchemy/sql/elements.py:1603–1618  ·  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

1601 return op(other, self.comparator, **kwargs) # type: ignore[no-any-return] # noqa: E501
1602
1603 def _bind_param(
1604 self,
1605 operator: operators.OperatorType,
1606 obj: Any,
1607 type_: Optional[TypeEngine[_T]] = None,
1608 expanding: bool = False,
1609 ) -> BindParameter[_T]:
1610 return BindParameter(
1611 None,
1612 obj,
1613 _compared_to_operator=operator,
1614 type_=type_,
1615 _compared_to_type=self.type,
1616 unique=True,
1617 expanding=expanding,
1618 )
1619
1620 @property
1621 def expression(self) -> ColumnElement[Any]:

Callers

nothing calls this directly

Calls 1

BindParameterClass · 0.85

Tested by

no test coverage detected