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

Function defer

lib/sqlalchemy/orm/strategy_options.py:2505–2521  ·  view source on GitHub ↗
(
    key: _AttrType, *addl_attrs: _AttrType, raiseload: bool = False
)

Source from the content-addressed store, hash-verified

2503
2504@loader_unbound_fn
2505def defer(
2506 key: _AttrType, *addl_attrs: _AttrType, raiseload: bool = False
2507) -> _AbstractLoad:
2508 if addl_attrs:
2509 util.warn_deprecated(
2510 "The *addl_attrs on orm.defer is deprecated. Please use "
2511 "method chaining in conjunction with defaultload() to "
2512 "indicate a path.",
2513 version="1.3",
2514 )
2515
2516 if raiseload:
2517 kw = {"raiseload": raiseload}
2518 else:
2519 kw = {}
2520
2521 return _generate_from_keys(Load.defer, (key,) + addl_attrs, False, kw)
2522
2523
2524@loader_unbound_fn

Callers 15

goMethod · 0.90
test_unbound_optionsMethod · 0.90
test_oneMethod · 0.90
test_twoMethod · 0.90
test_threeMethod · 0.90
test_fourMethod · 0.90

Calls 1

_generate_from_keysFunction · 0.85

Tested by 15

goMethod · 0.72
test_unbound_optionsMethod · 0.72
test_oneMethod · 0.72
test_twoMethod · 0.72
test_threeMethod · 0.72
test_fourMethod · 0.72