Missing `.path` in _openConnection

This commit is contained in:
Constantin Clauzel 2020-01-03 19:33:22 +01:00 committed by GitHub
parent 9dbd737087
commit b602cbd88b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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!