Skip to content

Conversation

@JakeCooper
Copy link
Contributor

@JakeCooper JakeCooper commented Nov 27, 2019

This pull requests increments the major version from 2.0 to 3.0

Included: easydb allows you to implicitly or explicitly define a database.

implicit

import easyDB from 'easydb-io'

easyDB.put("key", "value");
easyDB.list((err, data) => console.log(data)); // {"key": "value"}

explicit

import easyDB from 'easydb.io'
let db = easyDB.connect({uuid: "my-uuid", token: "my-token"})
db.put("key", "value");
easyDB.list((err, data) => console.log(data)); // {"key": "value"}

EasyDB will define a database to use as a sane default inside an easydb.config.json file. This database will be used for all top level actions. connect returns a database which is connected to the server.

@JakeCooper
Copy link
Contributor Author

This works on Node but does not work on browsers

Further work will need to be completed before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants