![]() 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 |
||
---|---|---|
.. | ||
__init__.py | ||
api.py |