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

Method _bind_param

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

1476 FunctionElement.__init__(self, *clauses)
1477
1478 def _bind_param(
1479 self,
1480 operator: OperatorType,
1481 obj: Any,
1482 type_: Optional[TypeEngine[_T]] = None,
1483 expanding: bool = False,
1484 **kw: Any,
1485 ) -> BindParameter[_T]:
1486 return BindParameter(
1487 self.name,
1488 obj,
1489 _compared_to_operator=operator,
1490 _compared_to_type=self.type,
1491 type_=type_,
1492 unique=True,
1493 expanding=expanding,
1494 **kw,
1495 )
1496
1497
1498class GenericFunction(Function[_T]):

Callers

nothing calls this directly

Calls 1

BindParameterClass · 0.85

Tested by

no test coverage detected