readTransaction<T> method
Open a read-only transaction.
Statements within the transaction must be done on the provided SqliteReadContext - attempting statements on the SqliteConnection instance will error.
Implementation
@override
Future<T> readTransaction<T>(
Future<T> Function(SqliteReadContext tx) callback,
{Duration? lockTimeout}) async {
await isInitialized;
return database.readTransaction(callback, lockTimeout: lockTimeout);
}