pyaltt2/db.py
def lookup(self, *args, json_fields=[], **kwargs):
        """
        Get single db row, use self.execute

        Args:
            json_fields: decode json fields if required
            other: passed as-is

        Returns:
            single row as a dict
        Raises:
            LookupError: if nothing found
        """
        result = self._format_result(self.execute(*args, **kwargs).fetchone(),
                                     json_fields=json_fields)
        if result:
            return result
        else:
            raise LookupError

        Get single db row, use self.execute

        Args:
            json_fields: decode json fields if required
            other: passed as-is

        Returns:
            single row as a dict
        Raises:
            LookupError: if nothing found
        
Get single db row, use self.execute
Get single db row use self . execute
def lookup(self, *args, json_fields=[], **kwargs):
        result = self._format_result(self.execute(*args, **kwargs).fetchone(),
                                     json_fields=json_fields)
        if result:
            return result
        else:
            raise LookupError
def lookup ( self , * args , json_fields = [ ] , ** kwargs ) : result = self . _format_result ( self . execute ( * args , ** kwargs ) . fetchone ( ) , json_fields = json_fields ) if result : return result else : raise LookupError
Get single db row, use self.execute
Get single db row use self . execute
"""
        Get single db row, use self.execute

        Args:
            json_fields: decode json fields if required
            other: passed as-is

        Returns:
            single row as a dict
        Raises:
            LookupError: if nothing found
        """
single row as a dict
single row as a dict
if nothing found
if nothing found
LookupError
self
json_fields
decode json fields if required
decode json fields if required
other
None