@dariuski/microdb

1.0.1 • Public • Published

Micro Database engine

Plain file storage embedded database engine with MongoDB API

Features:

  • dropin replacement for MongoDB
  • non blocking plain file store
  • no dependencies

Usage example:

const db = new MicroDB('microdb://tmp')
const col = await db.collection('col')

await col.insertOne({name: 'test', score: 100})
await col.updateOne({score: {$gt: 50}}, {comment: 'Best score'})
console.log(await col.find({}).toArray())
await col.deleteOne({name: 'test'})

License

MIT

Package Sidebar

Install

npm i @dariuski/microdb

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

32.9 kB

Total Files

4

Last publish

Collaborators

  • dariuski