Hi, there.
When I use this lowdb to create a native db for my little tool, i hit a problem that is: when i open my application again and how can I get the exsiting DB, for every time i have to create db like below sample code:
const lowdb = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync');
const adapter = new FileSync(dbname)
db = lowdb(adapter)
do you have any sample for when users open their app again and get the data from db.
Hi, there. When I use this lowdb to create a native db for my little tool, i hit a problem that is: when i open my application again and how can I get the exsiting DB, for every time i have to create db like below sample code: const lowdb = require('lowdb') const FileSync = require('lowdb/adapters/FileSync'); const adapter = new FileSync(dbname) db = lowdb(adapter)
do you have any sample for when users open their app again and get the data from db.