]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Apply underscore naming to several more operators
authorjonathan vanasco <jonathan@2xlp.com>
Wed, 28 Oct 2020 18:35:39 +0000 (14:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Oct 2020 14:02:29 +0000 (10:02 -0400)
commit9ddbd585a62ff1ad56e9ee6fef5898ced1932a88
treea1ba46d4c8fb5981062a22775fa73155532018e6
parent10851b002844fa4f9de7af92dbb15cb1133497eb
Apply underscore naming to several more operators

The operator changes are:

* `isfalse` is now `is_false`
* `isnot_distinct_from` is now `is_not_distinct_from`
* `istrue` is now `is_true`
* `notbetween` is now `not_between`
* `notcontains` is now `not_contains`
* `notendswith` is now `not_endswith`
* `notilike` is now `not_ilike`
* `notlike` is now `not_like`
* `notmatch` is now `not_match`
* `notstartswith` is now `not_startswith`
* `nullsfirst` is now `nulls_first`
* `nullslast` is now `nulls_last`

Because these are core operators, the internal migration strategy for this
change is to support legacy terms for an extended period of time -- if not
indefinitely -- but update all documentation, tutorials, and internal usage
to the new terms.  The new terms are used to define the functions, and
the legacy terms have been deprecated into aliases of the new terms.

Fixes: #5435
Change-Id: Ifbd7cb1cdda5981990243c4fc4b4ff467dc132ac
25 files changed:
doc/build/changelog/unreleased_14/5435.rst [new file with mode: 0644]
doc/build/core/custom_types.rst
doc/build/core/sqlelement.rst
lib/sqlalchemy/__init__.py
lib/sqlalchemy/dialects/firebird/base.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/orm/evaluator.py
lib/sqlalchemy/sql/__init__.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/default_comparator.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/operators.py
lib/sqlalchemy/testing/suite/test_select.py
test/dialect/postgresql/test_reflection.py
test/dialect/test_sqlite.py
test/sql/test_compiler.py
test/sql/test_deprecations.py
test/sql/test_operators.py
test/sql/test_query.py