You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm i --save fs path
OR
pnpm i --save fs path
OR
bun i fs path
OR
yarn i fs path
Requirement for MSDB and Manager
npm i --save fs path readline
OR
pnpm i --save fs path readline
OR
bun i fs path readline
OR
yarn i fs path readline
how to use
constinitializeDatabase=require('./msdb');// install database manager to you databaseconstmyDatabase=initializeDatabase('myDatabase');// use database "myDatabase"constusersTable=myDatabase('users');// use Table "users"constuserData={name: 'John Doe',age: 25,email: 'john@example.com'};// user datausersTable.save(null,userData);// add data to table usersTable (users) on random key (key can see on table file or manager app.js)usersTable.save("John Doe",userData);// add data to table usersTable (users) on random fix keyconsole.log('ALL DATA ON TABLE',usersTable.getAll());// get all data on table users (index is 1 2 3 4 5)console.log('ALL DATA ON TABLE',usersTable.getAll('desc'));// get all data on table users (index is 5 4 3 2 1)console.log('DATA GET BY KEY :',usersTable.find('someKey'));// get data on table user use KeyusersTable.remove('someKey');//remove datausersTable.random();// rendom
About
Database Manager create by makishop.xyz | MSDB is a json database low ram and cpu use on small database use like a mysql have database and table