npm install umutice-db
db.deleteArrayValue ve db.hasArray'deki hatalar düzeltildi | Fixed bugs in db.deleteArrayValue and db.hasArray
const db = require("umutice-db");
// Verileri Ayarla | Set Data
db.set("Sword Type", "Iron");
// Veri Al | Get data
db.get("Sword Type"); // Iron
db.fetch("Sword Type"); // Iron
// Veri Sil | Delete Data
db.delete("Sword Type");
db.get("Sword Type"); // undefined
db.has("Sword Typelo"); // false
db.set("Score", 10);
db.add("Score", 1); // 11
db.subtract("Score", 9); // 2
//Push Örnek | Push Example
db.set("Swords", [ "Iron" ]) //[ "Iron" ]
db.push("Swords", "Diamond") //[ "Iron", "Diamond" ]
// Arrayden Veri Silme Örnek | Delete Value on Array Example
db.deleteArrayValue("Swords", "Diamond") //[ "Iron" ]
db.hasArray("Swords", "Diamond") //false
db.hasArray("Swords", "Iron") //true
// Tüm Verileri Sil | Clear All Data
db.deleteAll();