Introduction

xariona.db fast and multifunctional database module

Installing npm

npm install --save xariona-db

Danger! node engine version 12.x recommended

Horay! lets setup the module!

const Xariona = require("xariona-db")
const db = new Xariona("json") // JSON and sqlite are supported

Examples

const Xariona = require("xariona-db")
const db = new Xariona("json")

db.setAndSave("userData.bio", "hello i am the user!")
// -> true

db.getFromDb("userData.bio")
// -> "hello i am the user!"

db.fetchFromDb("userData.bio")
// -> "hello i am the user!"

db.setAndSave("userData", { certificate: true, bio: "hello i am the user!" })
// -> true

db.deleteAndSave("userData")
// -> true

db.pushAndSave("userData.jobs", ["cooker", "mamamia"]) 
// -> true

db.version() 
// -> 1.0.x

Last updated