diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-06-11 11:33:46 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-06-11 20:08:13 -0400 |
commit | b3a1162553879d1369154e920f3f4129020bb88e (patch) | |
tree | 4de3c6553fbf2aa58886ebab6374b72be078edbf /lib/sqlalchemy/testing/assertions.py | |
parent | b163099ada4009b2bdc9538c04120aee1f13dcc8 (diff) | |
download | sqlalchemy-b3a1162553879d1369154e920f3f4129020bb88e.tar.gz |
add auto_recurse option to selectinload, immediateload
Added very experimental feature to the :func:`_orm.selectinload` and
:func:`_orm.immediateload` loader options called
:paramref:`_orm.selectinload.auto_recurse` /
:paramref:`_orm.immediateload.auto_recurse` , which when set to True will
cause a self-referential relationship load to continue loading with
arbitrary depth until no further objects are found. This may be useful for
self-referential structures that must be loaded fully eagerly, such as when
using asyncio.
Fixes: #8126
Change-Id: I5bbd00bd0ca43f4649b44680fea1e84680f0a5db
Diffstat (limited to 'lib/sqlalchemy/testing/assertions.py')
-rw-r--r-- | lib/sqlalchemy/testing/assertions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py index e33d61f6d..9888d7c18 100644 --- a/lib/sqlalchemy/testing/assertions.py +++ b/lib/sqlalchemy/testing/assertions.py @@ -801,7 +801,7 @@ class AssertsExecutionResults: return self.assert_sql_execution(db, callable_, *newrules) def assert_sql_count(self, db, callable_, count): - self.assert_sql_execution( + return self.assert_sql_execution( db, callable_, assertsql.CountStatements(count) ) |