primate icon indicating copy to clipboard operation
primate copied to clipboard

add support for pouchdb

Open ralyodio opened this issue 1 year ago • 0 comments

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.

ralyodio avatar Jun 18 '24 14:06 ralyodio