1.1.3 • Published 6 years ago

better-json-db v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Welcome to JSON.DB!

This is an easy to use JSON Database manager. It's really easy to use for both beginner and experienced programmers. You don't need to have a database server up and running, because this package stores everything locally.

How to start

It's very easy to start. Here are the steps to get a database ready to be used:

1 Create a new table using the createTable('name') function.

That's it! You can now set information with the set("id", "value", {target: ".key", table: "name"}) function. Value can be all storing types. The target parameter is optional, however the table is needed. You can edit specific keys in the database with the target option.

Functions

set("id", "value", {target: ".", table: "table_name"}) // it will override everything if target hasn't been defined or if it's defined as ".". -- Promise

get("id", "table_name") // returns the data for the id. -- Promise

delete("id", "table_name") // returns a Promise. -- Promise

deleteAll("table") // deletes all the data from a table. -- Promise

getAll("table_name") // returns all the data from the table. -- Promise

createTable("table") // creates a new table. -- Promise

deleteTable("table") // deletes a table. -- Promise

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago