bucksh0t.db
v1.5.6
Published
bucksh0t.db Databases Advanced features
Downloads
2,815
Maintainers
Readme
bucksh0t.db
Examples:
// Data Set | Get | Add
db.set("KEY", "DATA"); // Change Data And Result Data
db.get("KEY"); // Result Data
db.add("KEY"); // Change Data And Result Data
db.fetch("KEY"); // Result Data
db.push("KEY.KEY", "data"); // Push Datas Json or Array
// Data All
db.all("OPTIONAL MAX DATAS NUMBER"); // All Datas
// Data exists
db.has("KEY"); // True/False
// Data Count
db.size(); // All Data Length
// Created Notification
db.on("create", (datas) => {
console.log(`Created Data Name: "${datas.key}", Value: "${datas.value}"`);
});
// Updated Notification
db.on("update", (datas) => {
console.log(`Updated Data Name: "${datas.key}", Last Value: "${datas.last}", New Value: "${datas.new}"`);
});
// Deleted Notification
db.on("delete", (datas) => {
console.log(`Deleted Data Name: "${datas.key}", Value: "${datas.value}"`);
});
Main Data
const db = require("bucksh0t.db");
Multiple Data
const database = require("bucksh0t.db");
const db = new database.create("datas.json", 0); // ({PATH}, {MAXDATALIMIT})
For Support Join: t.me/inelity