From 3d40a8d81ba5c0823220f623429d23a71524e16b Mon Sep 17 00:00:00 2001 From: Sorunome Date: Mon, 22 Jun 2020 17:27:06 +0200 Subject: [PATCH] remove transaction hack --- lib/src/database/database.dart | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/src/database/database.dart b/lib/src/database/database.dart index 28ea9d1..8abde1d 100644 --- a/lib/src/database/database.dart +++ b/lib/src/database/database.dart @@ -20,18 +20,6 @@ class Database extends _$Database { int get maxFileSize => 1 * 1024 * 1024; - @override - Future transaction(Future Function() action) async { - try { - await super.transaction(() async { - await customSelect('SELECT 1').get(); - }); - } catch (_) { - return action(); - } - return super.transaction(action); - } - @override MigrationStrategy get migration => MigrationStrategy( onCreate: (Migrator m) {