neutron-lib/neutron_lib/objects
Hongbin Lu dafbd30ef8 Support custom filters in OVO
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
2018-10-29 15:27:50 +00:00
..
__init__.py rehome ovo exceptions 2017-06-19 06:27:24 -06:00
exceptions.py Add two fields to NeutronDbObjectDuplicateEntry 2018-06-28 20:56:10 +00:00
registry.py versioned object plugin registry 2018-04-11 22:30:20 +00:00
utils.py Support custom filters in OVO 2018-10-29 15:27:50 +00:00