1.0.0 • Published 3 years ago
@padmanabh/jsondb v1.0.0
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 buildTo test
npm run testDocumentation
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
License
1.0.0
3 years ago