iterate method
Future<void>
iterate(
- SdbClient client, {
- SdbTransactionMode? mode,
- SdbFindOptions<
SdbKey> ? options, - required SdbIndexCursorRowHandler<
K, V, I> onRow,
if client is a transaction it must match the transaction mode requiring write mode if the transaction is ready only will fail return true to continue iteration.
in onRow Like for transaction, no lengthy operation but access to database.
The boundaries of options apply to the index key (typed with the
index key or the store key, any key type is accepted).
Implementation
Future<void> iterate(
SdbClient client, {
SdbTransactionMode? mode,
SdbFindOptions<SdbKey>? options,
required SdbIndexCursorRowHandler<K, V, I> onRow,
}) async {
await impl.clientIterateImpl(
client,
mode: mode ?? SdbTransactionMode.readOnly,
options: options ?? SdbFindOptions(),
handler: onRow,
);
}