summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-02-10 21:57:44 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-02-10 21:57:44 -0500
commit020d6ef8f017d4411b403c18d93f913d6b01fd62 (patch)
tree15cb1d36599dcadc5cac2c7d857d44d006c346c5 /lib/sqlalchemy/engine/base.py
parentad8700a556d3ec9368dd80238dfddf456eeccd5f (diff)
downloadsqlalchemy-020d6ef8f017d4411b403c18d93f913d6b01fd62.tar.gz
- Added over() function, method to FunctionElement
classes, produces the _Over() construct which in turn generates "window functions", i.e. "<window function> OVER (PARTITION BY <partition by>, ORDER BY <order by>)". [ticket:1844]
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r--lib/sqlalchemy/engine/base.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index cf6c6ad49..ae29ac40b 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -791,6 +791,14 @@ class Connectable(object):
raise NotImplementedError()
def execute(self, object, *multiparams, **params):
+ """Executes the given construct and returns a :class:`.ResultProxy`."""
+ raise NotImplementedError()
+
+ def scalar(self, object, *multiparams, **params):
+ """Executes and returns the first column of the first row.
+
+ The underlying cursor is closed after execution.
+ """
raise NotImplementedError()
def _execute_clauseelement(self, elem, multiparams=None, params=None):