1.0.8 • Published 3 years ago
djsonb v1.0.8
Usage
- A JSON based Database for tests and small applications
const djsonb = require('djsonb')
const db = djsonb.connect()
// Create
db.create({"name":"test", "age": 1})
// Find by id
db.findById(1606450135293)
// delete by id
db.delete(1606450135293)
// update
async function ... {
const user = await db.findById(1606450135293)
user.name = "test2"
db.update(user)
}
// Reset Database
db.reset()