neutron/neutron/objects/db
Rodolfo Alonso Hernandez 9911d414c6 Improve "objects.db.api.count" method
Two improvements are implemented in this method:
- Add a query limit number parameter. This parameter is used by
  "NeutronDbObject.objects_exist" to limit the number of registers
  retrieved to 1.
- Add a query field parameter. This is the name (string) of the
  "obj_cls.fields" list. That will reduce the columns to be
  retrieved to only one. To check the existence of a DB register,
  there is not need to retrieve the full DB model including the back
  references.
  In case of not passing any value, the first "obj_cls.primary_keys"
  value will be used instead.

Closes-Bug: #1925528

Change-Id: I9fd5e306e293102c366d89c01bbe8b13721d59b0
2021-04-28 07:50:56 +00:00
..
__init__.py Objects DB api: added composite key to handle multiple primary key 2016-03-01 17:05:11 +00:00
api.py Improve "objects.db.api.count" method 2021-04-28 07:50:56 +00:00