nya-json-db
v1.0.5
Published
(Not yet another) json database is a super simple implementation of a database which uses c++ in the backend.
Downloads
2
Readme
Nya JSON DB
(Not yet another) json database is a super simple implementation of a persistent database which uses c++ in the backend. Requires Python >= 3.7 and MSVC Build Tools 2017.
Usage
const NyaJSONDB = require("nya-json-db");
let nyaJSONDB = new NyaJSONDB(<path to db>, (<options>));
// Set object
nyaJSONDB.set(<key>, <object>);
// Get Object
const result = nyaJSONDB.get(<key>);
// Clear Database
nyaJSONDB.clear();
Options
options = {
autoSave: boolean; // Automatically saves database to disk. Defaultvalue: true.
}