saver.db
v3.0.3
Published
Saver Database Modules
Downloads
4
Readme
Ren Database Module And API
With this module, you can easily add data to json.
Installation
npm i ren.db
Examples
Javascript
const db = require("saver.db");
db.set(`UserId`, "368695088718544896"); // ---> Create user data
db.add(`Usernumber`, 5); // ---> Add user data this value
db.divide(`Usernumber`, 5); // ---> Divide user data by this value
db.extract(`Usernumber`, 5);// ---> Extract this value from user data
db.multiply(`Usernumber`, 5); // ---> Multiply user data by this value
db.delete("UserAvatar"); // ---> Delete user data
db.push(`User`, `RengaN`); // ---> Push to array
db.has("User"); // ---> True Or False
db.fetch(`User`); // ---> Fetch user data
db.get(`User`); // ---> Fetch user data
db.fetchAll(); // ---> Fetch all data
db.clear(); // ---> Deletes all data and also creates a backup file.
Typescript
import * as db from "saver.db"
db.set(`UserId`, "368695088718544896"); // ---> Create user data
db.add(`Usernumber`, 5); // ---> Add user data this value
db.divide(`Usernumber`, 5); // ---> Divide user data by this value
db.extract(`Usernumber`, 5);// ---> Extract this value from user data
db.multiply(`Usernumber`, 5); // ---> Multiply user data by this value
db.Delete("UserAvatar"); // ---> Delete user data
db.push(`User`, `RengaN`); // ---> Push to array
db.has("User"); // ---> True Or False
db.fetch(`User`); // ---> Fetch user data
db.get(`User`); // ---> Fetch user data
db.fetchAll(); // ---> Fetch all data
db.clear(); // ---> Deletes all data and also creates a backup file.