summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/sqlsoup.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-01-17 18:19:29 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-01-17 18:19:29 +0000
commitb996bcff52294b8d222217c839f497c992dc6483 (patch)
tree6d4327f293966fcf21149dffbef1ba33abb87e4f /lib/sqlalchemy/ext/sqlsoup.py
parent2ac277015589cd360c0dcf55d495247e811819a1 (diff)
downloadsqlalchemy-b996bcff52294b8d222217c839f497c992dc6483.tar.gz
- The "clear()", "save()", "update()", "save_or_update()"
Session methods have been deprecated, replaced by "expunge_all()" and "add()". "expunge_all()" has also been added to ScopedSession.
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: