efdb example

YamlDB and JsonDB database example

const efdb = require("efdb")
cosnt db = new efdb(options)

db.set("a.b.c", 12) 
// 12
db.add("a.b.c", 1)
// 13
db.subtract("a.b.c", 1)
// 12
db.delete("a")
// true
db.push("ab", "testing")
// [ 'testing' ]
db.push("ab", "testing1")
// [ 'testing', 'testing1' ]
db.unpush("ab", "testing1")
// [ 'testing' ]
db.has("ab")
// true

Last updated