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

Method _bind_param

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

1384 FunctionElement.__init__(self, *clauses)
1385
1386 def _bind_param(
1387 self,
1388 operator: OperatorType,
1389 obj: Any,
1390 type_: Optional[TypeEngine[_T]] = None,
1391 expanding: bool = False,
1392 **kw: Any,
1393 ) -> BindParameter[_T]:
1394 return BindParameter(
1395 self.name,
1396 obj,
1397 _compared_to_operator=operator,
1398 _compared_to_type=self.type,
1399 type_=type_,
1400 unique=True,
1401 expanding=expanding,
1402 **kw,
1403 )
1404
1405
1406class GenericFunction(Function[_T]):

Callers

nothing calls this directly

Calls 1

BindParameterClass · 0.85

Tested by

no test coverage detected