3.0.8 • Published 1 year ago
pro.db-arzex v3.0.8
What is Pro.db-arzex ?
- It is a easy and quick storage unit that relies on
objects
to store data in JSON format - It is a fork of orginal pro.db with some arzex functions
Installation
- You need to install the package on your project
npm install pro.db-arzex
yarn add pro.db-arzex
How To Use
const dbClass = require('pro.db-arzex');
const db = new dbClass("data.json") // or any another name (added multiple databases feauture)
db.set('key','value');// to set a data to database.
db.get('key');// to get the data by key.
db.delete('key');// to delete key from database.
db.has('key','value');// return "true" or "false".
db.add('key', 10;);// to add a number to the key.
db.substract('key', 5);// to subtract a number from the key.
db.push('key', 10);// to set a data at the end.
db.remove('key',10); // remove 10 from array "key"
db.math("key","+",5);// to math the numbers.
db.fetch(); // to fetch the data from database.
db.fetchAll();// to fetchAll data.
//db.all(); Removed
db.backup("Filename");// to make a backup file for data base.
db.reset();// to delete all data and database.
Contact
- Contact With Me Discord :
! Ahmad#1064
- Or with orginal pro.db maker :
- Contact With Me Discord :
M7mD#0001
License
3.0.8
1 year ago