ToxicRT / endb

Endb is a simplified and powerful database for storing, accessing, and managing database.

Home Page:https://endb.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Endb

discord-server npm-version npm-downloads dependencies

npm-info

About

Endb – Enhanced Database is a simplified and powerful database for storing, accessing, and managing database.

  • Object-oriented
  • Persistent storage
  • Configurable
  • Performant
  • Beginner-friendly

Installation

Node.js 10.0.0 or newer is required.

Windows

  • Run npm -g --add-python-to-path install windows-build-tools node-gyp in CMD/Powershell as administrator
  • Restart CMD/Powershell
  • Run npm i endb

Mac

  • Install XCode
  • Run npm i -g node-gyp in Terminal
  • Run node-gyp --python /path/to/python2.7 (skip this step if you didn't install python 3.x)
  • Run npm i endb in Terminal

Linux

  • Run npm i endb in Terminal

Example

const Endb = require('endb');
const db = new Endb.Database();

db.set('account_1234567890', 'password'); // -> { key: 'account_1234567890', value: 'password' }
db.set('account_123456789', {
  id: 123456789,
  password: 'password',
  checked: true
}); // -> { key: 'account_123456789', value: '{"id":123456789,"password":"password","checked":true}' }

db.get('account_1234567890'); // -> password

db.has('account_1234567890'); // -> true

db.delete('account_1234567890'); // -> true

db.getAll() // -> // -> [ { key: 'account_123456789', value: '{"id":123456789,"password":"password","checked":true}' } ]

db.deleteAll(); // -> true

Links

About

Endb is a simplified and powerful database for storing, accessing, and managing database.

https://endb.js.org

License:MIT License


Languages

Language:JavaScript 100.0%