in asfpy/sqlite.py [0:0]
def fetchone(self, table_name: str, **params) -> typing.Optional[dict]:
"""
Fetches a single row from a table, or None if no match was found.
@param table_name: The table to search in
@param params: Search parameters as key/value pairs
@return: If a match was found, returns the matching row as a dict, else None
"""
try:
return next(self.fetch(table_name, **params))
except StopIteration: # No more entries!
return None