MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / scalar

Method scalar

lib/sqlalchemy/orm/session.py:2466–2474  ·  view source on GitHub ↗
(
        self,
        statement: TypedReturnsRows[Never],
        params: Optional[_CoreSingleExecuteParams] = None,
        *,
        execution_options: OrmExecuteOptionsParameter = util.EMPTY_DICT,
        bind_arguments: Optional[_BindArguments] = None,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

2464 # https://github.com/python/mypy/issues/20651
2465 @overload
2466 def scalar(
2467 self,
2468 statement: TypedReturnsRows[Never],
2469 params: Optional[_CoreSingleExecuteParams] = None,
2470 *,
2471 execution_options: OrmExecuteOptionsParameter = util.EMPTY_DICT,
2472 bind_arguments: Optional[_BindArguments] = None,
2473 **kw: Any,
2474 ) -> Optional[Any]: ...
2475
2476 @overload
2477 def scalar(

Callers 7

test_13091Function · 0.95
test_sequence_executeMethod · 0.95
test_no_autobeginMethod · 0.95
_execute_internalMethod · 0.45

Calls 1

_execute_internalMethod · 0.95

Tested by 6

test_13091Function · 0.76
test_sequence_executeMethod · 0.76
test_no_autobeginMethod · 0.76