Maybe there should be groups of dbProps which when filled with data on a dbobj_find cause it to return 0..1 objects instead of an iterator.
Why use an iterator if the requested properties are known to be unique?
Discussion
Anonymous
-
2006-12-17
Logged In: YES
user_id=1670457
Originator: YES
I see three ways for doing this:
1: a plus query for loading the PKs for the supplied dbProps and than handling them to dbobj_findOne
2: creating a copy of dbobj_findOne which works on non-PK, but unique dbProps sets
3: modifying dbobj_findOne to handle not only PKs, but also unique groups
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1670457
Originator: YES
I see three ways for doing this:
1: a plus query for loading the PKs for the supplied dbProps and than handling them to dbobj_findOne
2: creating a copy of dbobj_findOne which works on non-PK, but unique dbProps sets
3: modifying dbobj_findOne to handle not only PKs, but also unique groups