![Hongbin Lu](/assets/img/avatar_default.png)
In sqlalchemy, there are some advanced filter criterion but such filter criterion is not supported in OVO. An example is the "not in" criterion which is achieved by "query.filter(~db_model.column.in_(values))". Another example is the "not equal" criterion which is achieved by "query.filter(db_model.column != value)" This commit adds support for custom filtering. We introduce a base class called "FilterObj" from which the custom filter class should inherit. This commit also implements two filter class: one for implementing the "not in" criterion and the other for the "not equal" criterion. In addition, it makes StringMatchingFilterObj inherit from the FilterObj class. Needed-By: https://review.openstack.org/#/c/609848/ Change-Id: I9ac7fb000d2bed445efbc226c30abdcd981b90cb Partial-Implements: blueprint adopt-oslo-versioned-objects-for-db
10 lines
386 B
YAML
10 lines
386 B
YAML
---
|
|
prelude: >
|
|
This release adds support for custom filtering in versioned object.
|
|
features:
|
|
- |
|
|
A class called ``FilterObj`` is introduced.
|
|
This is the base class from which the custom filter class should inherit.
|
|
This release also implements two filter class: ``NotIn`` and ``NotEqual``.
|
|
The class ``StringMatchingFilterObj`` is now a subclass of ``FilterObj``.
|