mirror of https://github.com/AMT-Cheif/drift.git
Missing `.path` in _openConnection
This commit is contained in:
parent
9dbd737087
commit
b602cbd88b
|
@ -99,7 +99,7 @@ LazyDatabase _openConnection() {
|
|||
// put the database file, called db.sqlite here, into the documents folder
|
||||
// for your app.
|
||||
final dbFolder = await getApplicationDocumentsDirectory();
|
||||
final file = File(p.join(dbFolder, 'db.sqlite'));
|
||||
final file = File(p.join(dbFolder.path, 'db.sqlite'));
|
||||
return VmDatabase(file);
|
||||
});
|
||||
}
|
||||
|
@ -118,4 +118,4 @@ class MyDatabase extends _$MyDatabase {
|
|||
|
||||
Congratulations! You're now ready to use all of moor. See the articles below for further reading.
|
||||
The ["Writing queries"]({{< relref "writing_queries.md" >}}) article contains everything you need
|
||||
to know to write selects, updates and inserts in moor!
|
||||
to know to write selects, updates and inserts in moor!
|
||||
|
|
Loading…
Reference in New Issue