Code Monkey home page Code Monkey logo

base-msdb-js's Introduction

base-MSDB-JS bata0.3 (MSDB V6.5)

Requirement for only MSDB

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

const initializeDatabase = require('./msdb'); // install database manager to you database
const myDatabase = initializeDatabase('myDatabase'); // use database "myDatabase"
const usersTable = myDatabase('users'); // use Table "users"

const userData = { name: 'John Doe', age: 25, email: '[email protected]' }; // user data
usersTable.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 key

console.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 Key

usersTable.remove('someKey'); //remove data
usersTable.random(); // rendom

base-msdb-js's People

Contributors

kcchdev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.