TimescaleDB 查
x/timescaledbQuery组件:v0.37.0+执行 TimescaleDB / PostgreSQL SQL 查询并返回结果。适合做时序回读、对账和查询分析。
需要额外引入扩展库: rulego-components-iot (opens new window)
# 配置
| 字段 | 类型 | 说明 | 默认值 |
|---|---|---|---|
| dsn | string | PostgreSQL 连接串,例如 host=localhost port=5432 user=postgres dbname=ts sslmode=disable。支持 ref:// 复用同链连接 | 必填 |
| db | string | PostgreSQL schema 名,支持 ${msg.xx}/${metadata.xx} 模板 | 必填 |
| query | string | SQL 查询语句,支持 ${msg.xx}/${metadata.xx} 模板 | 必填 |
在 GitHub 上编辑此页 (opens new window)
上次更新: 2026/07/29, 08:03:51