Skip to content

Commit 58af17e

Browse files
committed
Make internal read transaction immediate
1 parent a4bcaa9 commit 58af17e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/sqlite_async/lib/src/utils/shared_utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import '../sqlite_connection.dart';
88
Future<T> internalReadTransaction<T>(SqliteReadContext ctx,
99
Future<T> Function(SqliteReadContext tx) callback) async {
1010
try {
11-
await ctx.getAll('BEGIN');
11+
await ctx.getAll('BEGIN IMMEDIATE');
1212
final result = await callback(ctx);
1313
await ctx.getAll('END TRANSACTION');
1414
return result;

0 commit comments

Comments
 (0)