1.0.0 • Published 2 years ago

@padmanabh/jsondb v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 years ago

JsonDB

A Extensively Fast and light weight DB with Json for those who want a light and small Database

Authors

Contribution

To Build the library

  npm run build

To test

  npm run test

Documentation

const DB = new DataBase(path, backupFrequency) instalizes database. needs path to Json file and Frequency (in seconds) at which after every time backup will be called. if 0 backup will be created at every update

prototypes

.map(key, value) ---> maps the key to value

.get(key) ---> gets the value of key

.remove(key) ---> removes the key

.backup() ---> backups you database in ram to disk

.erase() ---> ereases whole database

.close() ---> closes the database

Example

License

GPL3.0