singlestoredb.connection.Cursor.fetchone

abstract Cursor.fetchone() Optional[Union[Tuple[Any, ...], Dict[str, Any], pandas.core.frame.DataFrame, List[Tuple[Any, ...]], List[Dict[str, Any]]]]

Fetch a single row from the result set.

Examples

>>> while True:
...    row = cur.fetchone()
...    if row is None:
...       break
...    print(row)
Returns

Values of the returned row if there are rows remaining

Return type

tuple