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

Method instances

test/orm/test_query.py:7023–7030  ·  view source on GitHub ↗
(self, result, ctx)

Source from the content-addressed store, hash-verified

7021
7022 class TQuery(Query):
7023 def instances(self, result, ctx):
7024 try:
7025 eq_(
7026 result.connection._execution_options, execution_options
7027 )
7028 finally:
7029 result.close()
7030 return iter([])
7031
7032 sess = fixture_session(query_cls=TQuery)
7033 q1 = sess.query(User).execution_options(**execution_options)

Callers 2

goMethod · 0.45
goMethod · 0.45

Calls 2

eq_Function · 0.90
closeMethod · 0.45

Tested by

no test coverage detected