diff options
author | Phillip Cloud <cpcloud@gmail.com> | 2016-05-01 17:56:35 -0700 |
---|---|---|
committer | Phillip Cloud <cpcloud@gmail.com> | 2016-05-01 17:56:35 -0700 |
commit | 77fe28546e7124205e50c769f203f8330e35bac7 (patch) | |
tree | 3f234d9def153f6358bdd3490081bb5112966e6b /lib/sqlalchemy/sql/functions.py | |
parent | 9a3c9ba7beb18dfd6232deb895528ea8593a12b0 (diff) | |
download | sqlalchemy-pr/264.tar.gz |
Add window frame specificationpr/264
Diffstat (limited to 'lib/sqlalchemy/sql/functions.py')
-rw-r--r-- | lib/sqlalchemy/sql/functions.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py index e369f5a61..a140544f0 100644 --- a/lib/sqlalchemy/sql/functions.py +++ b/lib/sqlalchemy/sql/functions.py @@ -94,7 +94,7 @@ class FunctionElement(Executable, ColumnElement, FromClause): """ return self.clause_expr.element - def over(self, partition_by=None, order_by=None): + def over(self, partition_by=None, order_by=None, rows=None, range=None): """Produce an OVER clause against this function. Used against aggregate or so-called "window" functions, @@ -114,7 +114,13 @@ class FunctionElement(Executable, ColumnElement, FromClause): .. versionadded:: 0.7 """ - return Over(self, partition_by=partition_by, order_by=order_by) + return Over( + self, + partition_by=partition_by, + order_by=order_by, + rows=rows, + range=range + ) def within_group(self, *order_by): """Produce a WITHIN GROUP (ORDER BY expr) clause against this function. |