import PouchDB from 'pouchdb';
import pouchdbAdapterLeveldb from 'pouchdb-adapter-leveldb';
PouchDB.plugin(pouchdbAdapterLeveldb);
// Create a database instance and specify the storage path
const db = new PouchDB('my_database', {adapter: 'leveldb', prefix: './data/'});
// Now the database will store its data in the './data/' directory
This can be good for sqlite alternative that is nosql.
This can be good for sqlite alternative that is nosql.