summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r--lib/sqlalchemy/engine/base.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index fc4433a47..ca602b58c 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -300,6 +300,11 @@ class ExecutionContext(object):
(i.e. dict or list of dicts for non positional,
list or list of lists/tuples for positional).
+ isinsert
+ True if the statement is an INSERT
+
+ isupdate
+ True if the statement is an UPDATE
The Dialect should provide an ExecutionContext via the
create_execution_context() method. The `pre_exec` and `post_exec`
@@ -388,6 +393,12 @@ class ExecutionContext(object):
raise NotImplementedError()
+ def postfetch_cols(self):
+ """return a list of Column objects for which a 'passive' server-side default
+ value was fired off"""
+
+ raise NotImplementedError()
+
class Compiled(object):
"""Represent a compiled SQL expression.
@@ -1215,6 +1226,7 @@ class ResultProxy(object):
return self.context.lastrow_has_defaults()
+
def supports_sane_rowcount(self):
"""Return ``supports_sane_rowcount()`` from the underlying ExecutionContext.