> For the complete documentation index, see [llms.txt](https://docs.ondiagram.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ondiagram.com/nodes/easydb.md).

# EasyDB

## General

The `EasyDB` node allow to create, read, list and delete keys on an Easy DB database.

## Input

CASE: Put

* **Key:** Receives a `String` with the key to update. Learn more on [easydb.put](https://easydb.io/docs).
* **Data:** Receives an \``Object`, `String`, `Number` or `Boolean` with the data to save in the key. Learn more on [easydb.put](https://easydb.io/docs).

CASE: Get

* **Key:** Receives a `String` with the key to retrieve. Learn more on [easydb.get](https://easydb.io/docs).

CASE: Delete

* **Key:** Receives a `String` with the key to delete. Learn more on [easydb.delete](https://easydb.io/docs).

CASE: List

* The list commands requires no parameters. Learn more on [easydb.list](https://easydb.io/docs).

Environment variables:

* **easydb:** Requires *Database* and *Token* to be set.

## Output

CASE: Put

* This operation returns no data. Learn more on [easydb.put](https://easydb.io/docs).

CASE: Get

* **Out:** Returns an `Object`, `String`, `Number` or `Boolean` with the retrieved data. Learn more on [easydb.get](https://easydb.io/docs).

CASE: Delete

* This operation returns no data. Learn more on [easydb.delete](https://easydb.io/docs).

CASE: List

* **Out:** Returns an array of `Object`, `String`, `Number` or `Boolean` with the all database keys. Learn more on [easydb.list](https://easydb.io/docs).

## Use Cases

Retrieve a value from the database.

* Request (Get) ➡ EasyDB (Get) ➡ Response (200)

Update a value on the database.

* Request (Post) ➡ EasyDB (Put) ➡ Response (200)
