Skip to content
Permalink
Browse files

Missing `.path` in _openConnection

  • Loading branch information
vitaminwater committed Jan 3, 2020
1 parent 9dbd737 commit b602cbd88b2f31d8fe10cb7df698efb9fdb60041
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/content/en/docs/Getting started/_index.md
@@ -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!

0 comments on commit b602cbd

Please sign in to comment.
You can’t perform that action at this time.