tiedot
v0.0.4
Published
Tiedot driver for Node.js.
Downloads
1
Readme
Tiedot
Node.js Tiedot client.
Installation
To install tiedot, run:
yarn add tiedot
This will download the Tiedot client and add a dependency entry in your package.json file.
Connecting to tiedot
const Tiedot = require("tiedot");
const client = new Tiedot("http://localhost:5050");
Usage
Manage collections
// Create collection
await bucket.create("Users");
// Rename Collection
await bucket.rename("Users", "Contacts");
// Drop collection
await bucket.drop("Users");
Manage documents
// Insert
await bucket.insert("Users", {
username: "yasaricli",
});
// Get
await bucket.insert("Users", "id");
// Update
const updateRequest = await bucket.update("Users", "id", {
username: "osman",
});
// Remove
await bucket.remove("Users", "id");
Docker Run
To pull and start the Tiedot container, run this docker run command in the terminal or command-line for your operating system.
docker pull lichti/tiedot
docker run --name tiedot -d -p 5050:8080 lichti/tiedot
Tiedot
is a document database engine that uses JSON as document notation HouzuoGuo/tiedot