
Yüklemek İçin
npm install wio.db
News
Yaml Support
- Json specific features have also been added to yaml
Uyarı || Warning
- Node sürümü 14 gereklidir.
- Node version 14 is required
Nasıl Kullanılır? || how to use?
TypeScript
import db from "wio.db"
JS
const {
JsonDatabase,
YamlDatabase
} = require("wio.db");
const db = new JsonDatabase("myDatabase");
const yamldb = new YamlDatabase("myDatabase");
db.set("data1", 1);
db.get("data1");
db.fetch("data1");
db.has("data1");
db.exists("data2");
db.all(5); || db.all();
db.fetchAll(5); || db.fetchAll();
db.toJson(5); || db.toJson();
db.delete("key");
db.deleteAll();
db.type("data1");
db.push("array1", 10);
db.pull("array1", 10);
db.arrayHasValue("array1", 10);
db.valueArray();
db.keyArray();
db.math("data1","*", 3);
db.add("data1", 10);
db.substr("data1", 5);
db.includes("da");
db.startsWith("da");
db.findAndDelete((key,value) => {
return key.includes("data");
});
console.log(db.size);
console.log(db.totalDBSize);
console.log(JsonDatabase.DBCollection);
db.destroy();
Bana ulaşabileceğiniz yerler. || Bugs report
İnstagram
Discord