primatejs / primate

Web framework focused on flexibility and developer freedom
https://primatejs.com
MIT License
200 stars 9 forks source link

add support for pouchdb #128

Open ralyodio opened 3 months ago

ralyodio commented 3 months ago
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.