Files
daily-news-digest/n8n/workflows/01-test-postgres.json
T
2026-08-09 20:07:23 +08:00

47 lines
1.1 KiB
JSON

{
"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": []
}