sql.db
v5.0.3
Published
a simple and easy database package make your life easy.
Downloads
28
Readme
What is sql.db ?
- It is a easy and quick storage unit that relies on
objects
to store data in JSON format - BTW THIS IS A FORK (NOT REAL VERSION ) check it out here [https://www.npmjs.com/package/sql.db/]
Installation
- You need to install the package on your project
npm install sql.db
yarn add sql.db
pnpm add sql.db
Example File
How To Use
db.set('path','key','value');// to set a data to database.
db.get("path",'key');// to get the data by key.
db.remove("path",'key');// to delete key from database.
db.has("path",'key','value');// return "true" or "false".
**new**
db.push('key', 'value');// to push a data at the end.
db.unpush('key', 'value');// to ubush a data at the end.
db.fuze('test.json','new-key-name','key1','key2')
db.all();// to get all data in database.
db.resetart();// to delete all data and database.
Contact
- Contact With Me Discord myId 877580953717985360 :
! dragon#6019