1.0.6 • Published 2 years ago

localdb-json v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

LocalDB

Uses NodeJS FileSystem to manage and store data locally on the system. It is an extremely fast and reliable database. No network requests are made and everything is held locally. Each table will have buckets which can hold up to 500 documents

API Reference

Render HTML as PNG/JPEG

    const db = require("localdb-json");
ParameterTypeDescriptionUsage
createTablefunctionCreates a table by passing in a stringdb.createTable("table_name")
deleteTablefunctionDeletes a table by passing in a stringdb.deleteTable("table_name")
insertOnefunctionWrites json to a tabledb.insertOne({ field: value }, "table_name")
findOnefunctionReads from a table / Setting true as the third function parameter means it will only return the first resultdb.findOne({ username: 'person 1' }, "table_name");
deleteOnefunctionDeletes most relevant result from database This will only delete one document at a timedb.deleteOne({ username: 'person 1' }, "table_name");
updateOnefunctionUpdates most relevant result from database This will only update one document at a timedb.updateOne({ getUser: '123' }, { setUsername: 'user123' }, "table_name");

Features

  • Reliable
  • Synchronous
  • Uses Built In Filesystem
  • Supports huge amounts of data (up to 1gb of returned data)
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago