TimescaleDB 节点(TimescaleDB node)#
使用 TimescaleDB 节点在 TimescaleDB 中自动化工作,并将 TimescaleDB 与其他应用集成。n8n 内置支持广泛的 TimescaleDB 功能,包括执行 SQL 查询以及向数据库中插入和更新行。
🌐 Use the TimescaleDB node to automate work in TimescaleDB, and integrate TimescaleDB with other applications. n8n has built-in support for a wide range of TimescaleDB features, including executing an SQL query, as well as inserting and updating rows in a database.
本页面列出了 TimescaleDB 节点支持的操作列表以及更多资源的链接。
🌐 On this page, you'll find a list of operations the TimescaleDB node supports and links to more resources.
凭证
有关设置身份验证的指导,请参考 TimescaleDB 凭据。
操作(Operations)#
- 执行 SQL 查询
- 向数据库中插入行
- 更新数据库中的行
模板和示例(Templates and examples)#
指定列的数据类型(Specify a column's data type)#
要指定列的数据类型,请在列名后添加 :type,其中 type 是你想为该列指定的数据类型。例如,如果你想为列 id 指定类型 int,为列 name 指定类型 text,你可以在 Columns 字段中使用如下片段:id:int,name:text。
🌐 To specify a column's data type, append the column name with :type, where type is the data type you want for the column. For example, if you want to specify the type int for the column id and type text for the column name, you can use the following snippet in the Columns field: id:int,name:text.