MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / with_expression

Function with_expression

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

Source from the content-addressed store, hash-verified

2523
2524@loader_unbound_fn
2525def with_expression(
2526 key: _AttrType, expression: _ColumnExpressionArgument[Any]
2527) -> _AbstractLoad:
2528 return _generate_from_keys(
2529 Load.with_expression, (key,), False, {"expression": expression}
2530 )
2531
2532
2533@loader_unbound_fn

Callers 15

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