File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ class TestOpenFactory extends DefaultSqliteOpenFactory {
11
11
TestOpenFactory ({required super .path, super .sqliteOptions});
12
12
13
13
@override
14
- FutureOr < CommonDatabase > open (SqliteOpenOptions options) async {
15
- final db = await super .open (options);
14
+ CommonDatabase open (SqliteOpenOptions options) {
15
+ final db = super .open (options);
16
16
17
17
db.createFunction (
18
18
functionName: 'sleep' ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class TestOpenFactory extends DefaultSqliteOpenFactory {
17
17
this .sqlitePath = defaultSqlitePath});
18
18
19
19
@override
20
- FutureOr < CommonDatabase > open (SqliteOpenOptions options) async {
20
+ CommonDatabase open (SqliteOpenOptions options) {
21
21
// For details, see:
22
22
// https://pub.dev/packages/sqlite3#manually-providing-sqlite3-libraries
23
23
sqlite_open.open.overrideFor (sqlite_open.OperatingSystem .linux, () {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ abstract class SqliteOpenFactory<Database extends sqlite.CommonDatabase> {
15
15
String get path;
16
16
17
17
/// Opens a direct connection to the SQLite database
18
- FutureOr < Database > open (SqliteOpenOptions options);
18
+ Database open (SqliteOpenOptions options);
19
19
20
20
/// Opens an asynchronous [SqliteConnection]
21
21
FutureOr <SqliteConnection > openConnection (SqliteOpenOptions options);
@@ -77,14 +77,14 @@ abstract class AbstractDefaultSqliteOpenFactory<
77
77
@protected
78
78
79
79
/// Opens a direct connection to a SQLite database connection
80
- FutureOr < Database > openDB (SqliteOpenOptions options);
80
+ Database openDB (SqliteOpenOptions options);
81
81
82
82
@override
83
83
84
84
/// Opens a direct connection to a SQLite database connection
85
85
/// and executes setup pragma statements to initialize the DB
86
- FutureOr < Database > open (SqliteOpenOptions options) async {
87
- var db = await openDB (options);
86
+ Database open (SqliteOpenOptions options) {
87
+ var db = openDB (options);
88
88
89
89
// Pragma statements don't have the same BUSY_TIMEOUT behavior as normal statements.
90
90
// We add a manual retry loop for those.
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ class TestSqliteOpenFactory extends TestDefaultSqliteOpenFactory {
21
21
initStatements});
22
22
23
23
@override
24
- FutureOr < CommonDatabase > open (SqliteOpenOptions options) async {
24
+ CommonDatabase open (SqliteOpenOptions options) {
25
25
sqlite_open.open.overrideFor (sqlite_open.OperatingSystem .linux, () {
26
26
return DynamicLibrary .open (sqlitePath);
27
27
});
28
- final db = await super .open (options);
28
+ final db = super .open (options);
29
29
30
30
db.createFunction (
31
31
functionName: 'test_sleep' ,
You can’t perform that action at this time.
0 commit comments