MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / go

Method go

test/orm/test_events.py:210–213  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

208
209 @event.listens_for(s, "do_orm_execute")
210 def go(context):
211 for elem in context.user_defined_options:
212 if isinstance(elem, SetShardOption):
213 m1.update_execution_options(_sa_shard_id=elem.payload)
214
215 stmt = select(User).options(
216 loader_opt(User.addresses).options(loader_opt(Address.dingaling)),

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
itemsMethod · 0.45
startswithMethod · 0.45
do_orm_executeMethod · 0.45

Tested by

no test coverage detected