Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize Additional Operators (re: #5435) #5675

Closed

Conversation

jvanasco
Copy link
Member

Closes: #5435

I will bring into Gerrit once this passes Github Tests.

@jvanasco jvanasco marked this pull request as draft October 28, 2020 20:18
@jvanasco jvanasco force-pushed the feature-5435_standardization branch 6 times, most recently from ad94fee to 399b68d Compare October 28, 2020 22:09
Several operators are renamed to achieve more consistent naming across
SQLAlchemy.

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.

Change-Id: Ifbd7cb1cdda5981990243c4fc4b4ff467dc132ac
@jvanasco
Copy link
Member Author

this is in gerrit directly; closing.

@jvanasco jvanasco closed this Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proposal: standardize additional operator names for SqlAlchemy2.0
1 participant