mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
78 lines
1.4 KiB
JSON
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
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
} |