diff options
author | Federico Caselli <cfederico87@gmail.com> | 2023-02-27 22:56:02 +0100 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-02-28 19:19:20 -0500 |
commit | e02de779ba37b211342a849d107dcc49b452537d (patch) | |
tree | 77bfb288163904a83a3cc9bbd389b1e2db640af9 /lib/sqlalchemy | |
parent | fcab6bcc5a5a414c9775120f15c7dbd52ccf4ae3 (diff) | |
download | sqlalchemy-e02de779ba37b211342a849d107dcc49b452537d.tar.gz |
Restore export for nullslast/nullfirst
Previously only the snake case versions nulls_last/nulls_first
were exported in the toplevel namespace.
Fixes: #9390
Change-Id: I9088e858ae108a5c9106b9d8d82655ad605417cc
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/__init__.py | 2 | ||||
-rw-r--r-- | lib/sqlalchemy/sql/expression.py | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/__init__.py b/lib/sqlalchemy/__init__.py index 6720437fa..70eace964 100644 --- a/lib/sqlalchemy/__init__.py +++ b/lib/sqlalchemy/__init__.py @@ -162,6 +162,8 @@ from .sql.expression import Null as Null from .sql.expression import null as null from .sql.expression import nulls_first as nulls_first from .sql.expression import nulls_last as nulls_last +from .sql.expression import nullsfirst as nullsfirst +from .sql.expression import nullslast as nullslast from .sql.expression import Operators as Operators from .sql.expression import or_ as or_ from .sql.expression import outerjoin as outerjoin diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 7076cd10d..4fa9cda00 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -152,4 +152,8 @@ from .selectable import Values as Values from .visitors import Visitable as Visitable nullsfirst = nulls_first +"""Synonym for the :func:`.nulls_first` function.""" + + nullslast = nulls_last +"""Synonym for the :func:`.nulls_last` function.""" |