rawQueryCursor method

  1. @override
Future<QueryCursor> rawQueryCursor(
  1. String sql,
  2. List<Object?>? arguments, {
  3. int? bufferSize,
})
override

Executes a raw SQL SELECT with a cursor.

Returns a cursor, that must either be closed when reaching the end or that must be closed manually. You have to do QueryCursor.moveNext to navigate (forward) in the cursor.

Since its implementation cache rows for efficiency, bufferSize specified the number of rows to cache (100 being the default)

var cursor = await database.rawQueryCursor('SELECT * FROM Test');

Implementation

@override
Future<sqlite_api.QueryCursor> rawQueryCursor(
  String sql,
  List<Object?>? arguments, {
  int? bufferSize,
}) =>
    _delegate.rawQueryCursor(
      sql,
      arguments,
      bufferSize: bufferSize,
    );