coders.db
v7.6.5
Published
A better sqlite3 system that is easy to install and easy to use, easy to config, non-locking. Made in coders code (https://discord.gg/cxJbCaqBPu)
Downloads
140
Maintainers
Readme
CODERS.DB, Easy Local Database Module. For more Info Click here! (Support Discord Server) ❤️
// Set Function Example:
const data = require("coders.db");
data.set("coders.db", "OK");
// Output -> 'OK'
// Push Function Example:
const data = require("coders.db");
const mydatabaseKeyName = data.get("info.push");
mydatabaseKeyName.push("info.push", "push first");
// Output -> ['push first']
// Get Function Example:
const data = require("coders.db");
const mydatabaseKeyName = data.get("info");
// Output -> push: ['push first']
// Add Function Example:
const data = require("coders.db");
let getFunctionExample = 1;
data.set("getFunctionExample", getFunctionExample);
//and
data.add("getFunctionExample", 10);
// Output -> 11
// Subtract Function Example:
const data = require("coders.db");
let subtractNumber = 31;
data.set("subtract", subtractNumber);
//and
data.subtract("subtract", 10);
// Output -> 21
// Delete Function Example:
const data = require("coders.db");
data.delete("info");
// Output -> true
// Has Function Example:
const data = require("coders.db");
data.has("info");
// Output -> false
// allData Function Example:
const data = require("coders.db");
data.allData();
// Output -> {x:[a:"b"]}
// deleteFile Function Example:
const data = require("coders.db");
data.deleteFile();
// Output -> true
//Warning: and again you need to create a 'codersdb.sqlite' file.
// (Quick.db To Coders.Db) Move Function Example:
const data = require("coders.db");
data.move(require("quick.db"));
// Output -> true
//Warning: uninstall Quick.db after you're done.
// SetLanguage Function Example:
const data = require("coders.db");
data.setLanguage("tr");
// Output -> 'tr'
//or
data.setLanguage("en");
// Output -> 'en'
//Warning: Default Lang 'EN_US'