Files
n8n-enterprise-unlocked/test-workflows/workflows/124.json
2025-05-20 07:24:56 +01:00

166 lines
3.3 KiB
JSON

{
"createdAt": "2021-03-11T12:18:29.698Z",
"updatedAt": "2021-03-11T12:18:29.698Z",
"id": "124",
"name": "QuestDB: insert executeQuery",
"active": false,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
250,
300
],
"id": "97bc2a65-cef4-47d4-b986-8bbf54f8698d"
},
{
"parameters": {
"table": "TestTable",
"columns": "id,name"
},
"name": "QuestDB",
"type": "n8n-nodes-base.questDb",
"typeVersion": 1,
"position": [
650,
300
],
"credentials": {
"questDb": {
"id": "91",
"name": "QuestDB creds"
}
},
"id": "da306e33-0ed0-4c94-b37e-2769511e28d1"
},
{
"parameters": {
"values": {
"number": [
{
"name": "id",
"value": "={{Math.round(Math.random()*1000)}}"
}
],
"string": [
{
"name": "name",
"value": "=Name{{Date.now()}}"
}
]
},
"options": {}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
450,
300
],
"notesInFlow": true,
"notes": "prepare data",
"id": "53f41164-da16-4eae-a333-09166cfffeea"
},
{
"parameters": {
"operation": "executeQuery",
"query": "=SELECT * FROM TestTable WHERE id={{$node[\"QuestDB\"].json[\"id\"]}} LIMIT 1;"
},
"name": "QuestDB1",
"type": "n8n-nodes-base.questDb",
"typeVersion": 1,
"position": [
850,
300
],
"notesInFlow": true,
"credentials": {
"questDb": {
"id": "91",
"name": "QuestDB creds"
}
},
"notes": "get data",
"id": "d40ddbdd-c531-469b-8470-06d93e4a72e2"
},
{
"parameters": {
"operation": "executeQuery",
"query": "=TRUNCATE TABLE TestTable;"
},
"name": "QuestDB2",
"type": "n8n-nodes-base.questDb",
"typeVersion": 1,
"position": [
1050,
300
],
"notesInFlow": true,
"credentials": {
"questDb": {
"id": "91",
"name": "QuestDB creds"
}
},
"notes": "delete data",
"id": "7cd8a74b-0305-4700-b9db-ddcb844aa40b"
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Set": {
"main": [
[
{
"node": "QuestDB",
"type": "main",
"index": 0
}
]
]
},
"QuestDB": {
"main": [
[
{
"node": "QuestDB1",
"type": "main",
"index": 0
}
]
]
},
"QuestDB1": {
"main": [
[
{
"node": "QuestDB2",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {},
"staticData": null,
"meta": null,
"pinData": null,
"versionId": null,
"triggerCount": 0,
"tags": []
}