hest-db
v1.8.0
Published
Tamamen türkçe database modülü.
Downloads
24
Readme
Tamamen türkçe database modülü.
Yükleme
npm i hest-db
. Modülü indirdikten sonra ana dosyanın bulunduğu klasöre veritabanı.json adında bir dosya oluşturun ve içine {} yazın.
Özellikler
- Tamamen Türkçe.
- JSON üzerinden okunabilir/düzenlenebilir bir database.
Örnekler
const db = require('hest-db')
db.yaz('test',"deneme") //Database'de "test" adlı veriyi "deneme" olarak kaydeder.
db.yaz('test',50) //Database'de "test" adlı veriyi 50 olarak kaydeder.
db.listeEkle('test',"1")
db.listeEkle('test',"2")
db.listeEkle('test',"3")
//En sonunda verimiz `test = ["1","2","3"]` olarak kaydedilir
db.bul('test') // "test" adlı veriye kaydedilen değer/değerleri gösterir.
db.kontrol('test') // Database'de "test" adında bir veri olup olmadığını kontrol eder.
db.sil("test")//"test" adlı veriyi siler.
db.ekle("test",50) //Eğer "test" verisi bir sayı ise "test" verisine 50 ekler.
db.çıkar() //Eğer "test" verisi bir sayı ise "test" verisinden 50 çıkarır.
db.sıfırla()//Bütün Database'i sıfırlar.