CrateDB 节点(CrateDB node)#
使用 CrateDB 节点来自动化 CrateDB 中的工作,并将 CrateDB 与其他应用集成。n8n 内置支持多种 CrateDB 功能,包括在数据库中执行、插入和更新行。
🌐 Use the CrateDB node to automate work in CrateDB, and integrate CrateDB with other applications. n8n has built-in support for a wide range of CrateDB features, including executing, inserting, and updating rows in the database.
本页列出了 CrateDB 节点支持的操作列表以及更多资源的链接。
🌐 On this page, you'll find a list of operations the CrateDB node supports and links to more resources.
凭证
有关设置身份验证的指导,请参考 CrateDB 凭据。
操作(Operations)#
- 执行 SQL 查询
- 向数据库中插入行
- 更新数据库中的行
模板和示例(Templates and examples)#
节点引用(Node reference)#
指定列的数据类型(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.