Extend QuestDB node docs

This commit is contained in:
Tanay Pant 2020-08-06 11:03:00 +02:00
parent 8f7a4f1b25
commit 6c4e325c99
5 changed files with 32 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

View File

@ -14,13 +14,13 @@ You can find authentication information for this node [here](../../../credential
- Execute an SQL query
- Insert rows in database
- Update rows in database
## Example Usage
This workflow allows you to execute an SQL query in QuestDB. You can also find the [workflow](https://n8n.io/workflows/523) on the website. This example usage workflow would use the following two nodes.
This workflow allows you to create a table and insert data into it in QuestDB. You can also find the [workflow](https://n8n.io/workflows/592) on the website. This example usage workflow would use the following three nodes.
- [Start](../../core-nodes/Start/README.md)
- [Set](../../core-nodes/Set/README.md)
- [QuestDB]()
The final workflow should look like the following image.
@ -31,9 +31,35 @@ The final workflow should look like the following image.
The start node exists by default when you create a new workflow.
### 2. QuestDB node
### 2. QuestDB node (Execute Query)
1. First of all, you'll have to enter credentials for the QuestDB node. You can find out how to do that [here](../../../credentials/QuestDB/README.md).
2. Select 'Execute Query' from the *Operation* dropdown list.
3. Enter your SQL query in the *Query* field.
4. Click on *Execute Node* to run the workflow.
2. Select 'Execute Query' from the ***Operation*** dropdown list.
3. Enter the following SQL query in the ***Query*** field: `CREATE TABLE test (id INT, name STRING);`.
4. Click on the ***Node*** tab and toggle ***Always Output Data*** to true.
5. Click on ***Execute Node*** to run the node.
![Using the QuestDB node to create a table](./QuestDB_node.png)
### 3. Set node
1. Click on the ***Add Value*** button and select 'Number' from the dropdown list.
2. Enter `id` in the ***Name*** field.
3. Click on the ***Add Value*** button and select 'String' from the dropdown list.
4. Enter `name` in the ***Name*** field.
5. Enter the value for the name in the ***Value*** field.
6. Click on ***Execute Node*** to run the node.
![Using the Set node to set data to be inserted by the QuestDB node](./Set_node.png)
### 4. QuestDB node (Insert)
1. Select the credentials that you entered in the previous QuestDB node.
2. Enter `test` in the ***Table*** field.
3. Enter `id, name` in the ***Columns*** field.
4. Click on ***Execute Node*** to run the node.
![Using the QuestDB node to insert data into a table](./QuestDB1_node.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 KiB

After

Width:  |  Height:  |  Size: 278 KiB