(self)
Return True if the SqlTable is not empty.
Return True if the SqlTable is not empty.
Return True if the SqlTable is not empty .
def __bool__(self):
        """Return True if the SqlTable is not empty."""
        query = self._sql_query(["1"], limit=1)
        with self.backend.execute_sql_query(query) as cur:
            return cur.fetchone() is not None
def __bool__ ( self ) : query = self . _sql_query ( [ "1" ] , limit = 1 ) with self . backend . execute_sql_query ( query ) as cur : return cur . fetchone ( ) is not None