lookup_one
Description:
Convenience function in for cases where you have a priori guarantee that a lookup call will return exactly 0 or 1 row.
If the lookup returns more than 1 row a warning will be printed on standard error and null
will be returned.
The typical use case for this function is if you need something akin to a primary key in a relational database.
Parameters:
this |
The index to do the lookup in |
term |
The exact term to match |
Returns:
A ModelIter pointing to the matching row or |