mistuyani.db
v1.0.1
Published
A easy database written in node.js
Readme
mistuyani.db
A database wrapper for better-sqlite3
- Created with help of quick.db
Installation
npm install mistuyani.dbCode Samples
- Add something to already existing number
const mbd = require('mistuyani.db')
// adds value to a variable
mdb.add("goose_health", `1`) - Create something aka create a new variable
const mdb = require('mistuyani.db')
// creates a new variable
mdb.create('player_health', '100')- Get value from already existing variable
const mdb = require('mistuyani.db')
// gets value from existing variable
const playerhealth = mdb.get('player_health')
console.log(`Player's health is ${playerhealth}`)- Set value of an existing or yet not existing value
const mdb = require('mistuyani.db')
// sets value of existing or unexisting variable
mdb.set(`inventory`, `100`)