添加n8n流程
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "Daily News Digest - Test PostgreSQL",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "manual-trigger",
|
||||
"name": "手动执行",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [260, 300]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "executeQuery",
|
||||
"query": "SELECT current_database() AS database_name, NOW() AS checked_at, (SELECT COUNT(*) FROM news_sources) AS source_count, (SELECT COUNT(*) FROM news_articles) AS article_count;",
|
||||
"options": {}
|
||||
},
|
||||
"id": "postgres-check",
|
||||
"name": "检查新闻数据库",
|
||||
"type": "n8n-nodes-base.postgres",
|
||||
"typeVersion": 2.5,
|
||||
"position": [520, 300]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"手动执行": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "检查新闻数据库",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {},
|
||||
"versionId": "daily-news-digest-test-postgres-v1",
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": false
|
||||
},
|
||||
"pinData": {},
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user