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

Function load_only

lib/sqlalchemy/orm/strategy_options.py:2448–2453  ·  view source on GitHub ↗
(*attrs: _AttrType, raiseload: bool = False)

Source from the content-addressed store, hash-verified

2446
2447@loader_unbound_fn
2448def load_only(*attrs: _AttrType, raiseload: bool = False) -> _AbstractLoad:
2449 # TODO: attrs against different classes. we likely have to
2450 # add some extra state to Load of some kind
2451 attrs = _expand_column_strategy_attrs(attrs)
2452 _, lead_element, _ = _parse_attr_argument(attrs[0])
2453 return Load(lead_element).load_only(*attrs, raiseload=raiseload)
2454
2455
2456@loader_unbound_fn

Calls 4

_parse_attr_argumentFunction · 0.85
LoadClass · 0.85
load_onlyMethod · 0.80