n8n/docs/workflows/postgres-to-excel.json
2019-08-21 22:47:27 +02:00

78 lines
1.4 KiB
JSON

{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT name, ean FROM product"
},
"name": "Run Query",
"type": "n8n-nodes-base.postgres",
"typeVersion": 1,
"position": [
450,
450
],
"credentials": {
"postgres": "postgres"
}
},
{
"parameters": {
"operation": "toFile"
},
"name": "Spreadsheet File",
"type": "n8n-nodes-base.spreadsheetFile",
"typeVersion": 1,
"position": [
600,
450
]
},
{
"parameters": {
"fileName": "spreadsheet.xls"
},
"name": "Write Binary File",
"type": "n8n-nodes-base.writeBinaryFile",
"typeVersion": 1,
"position": [
750,
450
]
}
],
"connections": {
"Run Query": {
"main": [
[
{
"node": "Spreadsheet File",
"type": "main",
"index": 0
}
]
]
},
"Spreadsheet File": {
"main": [
[
{
"node": "Write Binary File",
"type": "main",
"index": 0
}
]
]
}
}
}