iutdb
v2.1.1
Published
A JSON and SQLİTE database module
Downloads
14
Readme
You can reach the renewed and improved version of the module by clicking here.
With this version, this module will not be updated again.
Examples
const iutdb = require("iutdb");
const db = new iutdb({
dbFile: "data", // Database file name
dbLang: "EN", // Database lang (en,tr)
dbType: "json" // Database options type (sqlite, json)
});
db.set("x.y.z", "roxza"); // roxza
db.fetch("x"); // {y: {z: "roxza"}}
db.add("b", 8); // {b: "8"}
db.subtract("b", 4); // {b: "4"}
db.has("x"); // true
db.delete("x"); // true
db.dataAll(); // {}
db.DataAllDelete(); // true