selectCursor method

IteratingCursor selectCursor([
  1. List<Object?> parameters = const <Object>[]
])

Starts selecting rows by running this prepared statement with the given parameters.

If the parameters list does not match the amount of parameters in the original SQL statement (parameterCount), an ArgumentError will be thrown. See StatementParameters for a list of types supported by this library.

If sqlite3 reports an error while running this statement, it will be thrown by a call to Iterator.moveNext.

The iterator returned here will become invalid with the next call to a method that runs this statement (execute, executeWith, select, selectWith, selectCursor, iterateWith).

Implementation

IteratingCursor selectCursor([List<Object?> parameters = const <Object>[]]) {
  return iterateWith(StatementParameters(parameters));
}