simplekubitdb
v1.0.4
Published
Both English and Turkish Database with its own extension! SimpleKubitDB
Downloads
6
Maintainers
Readme
🔥🔥🔥 SimpleKubitDB is a local database module 🎉
It stores your data in .kubitdb files — smooth & simple 💾
🚀 How to use SimpleKubitDB
const simplekubitdb = require('simplekubitdb')
const db = new simplekubitdb("database") // you can change the filename
// or use: const db = new kubitdb("./database.kubitdb") // if you want that cool extension 😎Set
db.ayarla('test', 'enabled')
db.set('test', 'true')output:
test = enabledAdd
db.ekle("money", 30)
db.add("money", 30)output:
money = 30Push
db.push("serverSettings", Date.now())
db.push("serverSettings", Date.now())output:
serverSettings = 1653784957913||kubitdbpush||1653784960343Has
db.varmı("prefix")
db.has("prefix") output:
true / falseFetch/Get
db.al("money")
db.bak("money")
db.get("money")
db.fetch("money")output:
500Delete
db.sil("serverStatus")
db.delete("serverStatus")output:
(deleted successfully)subtract
db.cıkar("money", 1)
db.subtract("money", 1)
db.substr("money", 1)
db.sil("serverStatus", 1)
db.delete("serverStatus", 1)
db.del("serverStatus", 1)output:
serverStatus = 9Wipe db
db.temizle()
db.clear()
db.deleteAll()
db.clearAll()output:
everything wiped 🔥Fetch everythink
db.all()
console.log(db.json()) // Convert to JSON, integrate with other DBs, or just flex it 🤖output:
money = 500
test = abc
bread = {1: "not", 2: "not", 3: "not"}