summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/sqlsoup.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/ext/sqlsoup.py')
-rw-r--r--lib/sqlalchemy/ext/sqlsoup.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ext/sqlsoup.py b/lib/sqlalchemy/ext/sqlsoup.py
index fbbf8d6fd..37b9d8fa8 100644
--- a/lib/sqlalchemy/ext/sqlsoup.py
+++ b/lib/sqlalchemy/ext/sqlsoup.py
@@ -316,7 +316,7 @@ Boring tests here. Nothing of real expository value.
>>> db.loans.count()
1
>>> _ = db.loans.insert(book_id=1, user_name='Bhargan Basepair')
- >>> db.clear()
+ >>> db.expunge_all()
>>> db.flush()
>>> db.loans.count()
1
@@ -516,7 +516,10 @@ class SqlSoup:
Session.flush()
def clear(self):
- Session.clear()
+ Session.expunge_all()
+
+ def expunge_all(self):
+ Session.expunge_all()
def map(self, selectable, **kwargs):
try: