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

Method callable_for_path

lib/sqlalchemy/orm/loading.py:1584–1598  ·  view source on GitHub ↗
(
        cls, context, path, limit_to_mapper, token, loader_callable, *arg, **kw
    )

Source from the content-addressed store, hash-verified

1582
1583 @classmethod
1584 def callable_for_path(
1585 cls, context, path, limit_to_mapper, token, loader_callable, *arg, **kw
1586 ):
1587 if path.path in context.post_load_paths:
1588 pl = context.post_load_paths[path.path]
1589 else:
1590 pl = context.post_load_paths[path.path] = PostLoad()
1591 pl.loaders[token] = (
1592 context,
1593 token,
1594 limit_to_mapper,
1595 loader_callable,
1596 arg,
1597 kw,
1598 )
1599
1600
1601def load_scalar_attributes(mapper, state, attribute_names, passive):

Callers 3

_instance_processorFunction · 0.80
create_row_processorMethod · 0.80
create_row_processorMethod · 0.80

Calls 1

PostLoadClass · 0.85

Tested by

no test coverage detected