iutdb
Version:
A JSON and SQLİTE database module
31 lines (19 loc) • 653 B
Markdown
# You can reach the renewed and improved version of the module by <a href="https://www.npmjs.com/package/prism.db">clicking here</a>.
# With this version, this module will not be updated again.
# Examples
```js
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
```