CroxyDB
What's new in 0.0.8?
- Fixed some bugs.
- Now, module is checking version. If module is outdated, it logs to your console.
a database module
Examples
Moving Data From Quick.DB
const db = require("croxydb");
const quickdb = require("quick.db");
db.move(quickdb)
Normal Example
const db = require("croxydb")
db.set("x.y.z", "abc")
db.get("x")
db.fetch("x")
db.all()
db.push("a", "hello")
db.push("a", "world")
db.unpush("a", "hello")
db.push("b", {test: "croxydb"})
db.push("b", {test2: "croxydb2"})
db.delByPriority("b", 1)
db.setByPriority("b", {newtest:"hey this is edited"}, 1)
db.has("x")
db.delete("x")
db.deleteAll()
With Options Example
const db = require("croxydb")
db.setReadable(true)
db.noBlankData(true)
db.setAdapter("yamldb")
db.set("x.y.z", "abc")
db.get("x")
db.fetch("x")
db.all()
db.push("a", "hello")
db.push("a", "world")
db.unpush("a", "hello")
db.push("b", {test: "croxydb"})
db.push("b", {test2: "croxydb2"})
db.delByPriority("b", 1)
db.setByPriority("b", {newtest:"hey this is edited"}, 1)
db.has("x")
db.delete("x")
db.deleteAll()
If you've any question, you can join to my Discord server: Click me!