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

Method _list_collection

test/orm/test_dynamic.py:1002–1007  ·  view source on GitHub ↗
(self, collection)

Source from the content-addressed store, hash-verified

1000 run_inserts = None
1001
1002 def _list_collection(self, collection):
1003 if self.lazy == "dynamic":
1004 return list(collection)
1005
1006 sess = inspect(collection.instance).session
1007 return sess.scalars(collection.select()).all()
1008
1009 def test_persistence(self, user_address_fixture):
1010 addresses = self.tables.addresses

Callers 5

test_collection_setMethod · 0.95
test_backrefMethod · 0.95
query1Method · 0.95
query2Method · 0.95
query3Method · 0.95

Calls 4

inspectFunction · 0.90
allMethod · 0.45
scalarsMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected