diff --git a/docs/nodes/nodes-library/nodes/QuestDB/QuestDB1_node.png b/docs/nodes/nodes-library/nodes/QuestDB/QuestDB1_node.png new file mode 100644 index 000000000..d16009b0f Binary files /dev/null and b/docs/nodes/nodes-library/nodes/QuestDB/QuestDB1_node.png differ diff --git a/docs/nodes/nodes-library/nodes/QuestDB/QuestDB_node.png b/docs/nodes/nodes-library/nodes/QuestDB/QuestDB_node.png new file mode 100644 index 000000000..aff4420a8 Binary files /dev/null and b/docs/nodes/nodes-library/nodes/QuestDB/QuestDB_node.png differ diff --git a/docs/nodes/nodes-library/nodes/QuestDB/README.md b/docs/nodes/nodes-library/nodes/QuestDB/README.md index 5ce55510c..2ac1b5ebd 100644 --- a/docs/nodes/nodes-library/nodes/QuestDB/README.md +++ b/docs/nodes/nodes-library/nodes/QuestDB/README.md @@ -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) diff --git a/docs/nodes/nodes-library/nodes/QuestDB/Set_node.png b/docs/nodes/nodes-library/nodes/QuestDB/Set_node.png new file mode 100644 index 000000000..bfcae0a83 Binary files /dev/null and b/docs/nodes/nodes-library/nodes/QuestDB/Set_node.png differ diff --git a/docs/nodes/nodes-library/nodes/QuestDB/workflow.png b/docs/nodes/nodes-library/nodes/QuestDB/workflow.png index ffd2d1ccf..ff2dbf77b 100644 Binary files a/docs/nodes/nodes-library/nodes/QuestDB/workflow.png and b/docs/nodes/nodes-library/nodes/QuestDB/workflow.png differ