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

Function with_expression

lib/sqlalchemy/orm/strategy_options.py:2543–2548  ·  view source on GitHub ↗
(
    key: _AttrType, expression: _ColumnExpressionArgument[Any]
)

Source from the content-addressed store, hash-verified

2541
2542@loader_unbound_fn
2543def with_expression(
2544 key: _AttrType, expression: _ColumnExpressionArgument[Any]
2545) -> _AbstractLoad:
2546 return _generate_from_keys(
2547 Load.with_expression, (key,), False, {"expression": expression}
2548 )
2549
2550
2551@loader_unbound_fn

Callers 15

t_6950.pyFile · 0.90
test_query_exprMethod · 0.90
goMethod · 0.90
test_with_expr_oneMethod · 0.90
test_with_expr_twoMethod · 0.90
test_with_expr_fourMethod · 0.90
test_simple_exprMethod · 0.90
test_reuse_exprMethod · 0.90

Calls 1

_generate_from_keysFunction · 0.85

Tested by 15

test_query_exprMethod · 0.72
goMethod · 0.72
test_with_expr_oneMethod · 0.72
test_with_expr_twoMethod · 0.72
test_with_expr_fourMethod · 0.72
test_simple_exprMethod · 0.72
test_reuse_exprMethod · 0.72