diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-10-08 14:41:35 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-10-08 14:41:35 -0400 |
| commit | 0a6e2d9b3683cf198b7a5bcf34a7abfb1f6ca19a (patch) | |
| tree | 37b5fa31ac38e5e3322272f3ef901d9a5fee423d /lib/sqlalchemy/engine/default.py | |
| parent | ab59e3e1135e1c5b59d19a54114163119d5ab1a4 (diff) | |
| download | sqlalchemy-0a6e2d9b3683cf198b7a5bcf34a7abfb1f6ca19a.tar.gz | |
- [feature] Various API tweaks to the "dialect"
API to better support highly specialized
systems such as the Akiban database, including
more hooks to allow an execution context to
access type processors.
Diffstat (limited to 'lib/sqlalchemy/engine/default.py')
| -rw-r--r-- | lib/sqlalchemy/engine/default.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py index 21e02fcdc..f43c0404e 100644 --- a/lib/sqlalchemy/engine/default.py +++ b/lib/sqlalchemy/engine/default.py @@ -625,6 +625,16 @@ class DefaultExecutionContext(interfaces.ExecutionContext): def post_exec(self): pass + def get_result_processor(self, type_, colname, coltype): + """Return a 'result processor' for a given type as present in + cursor.description. + + This has a default implementation that dialects can override + for context-sensitive result type handling. + + """ + return type_._cached_result_processor(self.dialect, coltype) + def get_lastrowid(self): """return self.cursor.lastrowid, or equivalent, after an INSERT. |
