Docs
NodesDatabase Nodes
Edit Page on GitHub

PostgreSQL - Insert Row(s)

Inserts one or more rows into a PostgreSQL table.

postgresdatabaseinsertwriteHard5
PostgreSQL - Insert Row(s) Node Screenshot

Description

PostgreSQL - Insert Row(s) node allows you to insert one or more rows into a specified PostgreSQL table using the provided connection details.

Common Use Cases

  • Storing user data collected from an AI agent interaction
  • Logging events or actions performed by an AI agent
  • Maintaining a history of AI agent decisions or outputs

Inputs

The input connections this node accepts:

NameDescriptionTypeFlowThe flow of the workflowFlowTableName of the table to insert intoTextDataA JSON object or an array of JSON objects to insertJSON[]ReturningOptional. Columns to return after insertion (e.g., 'id' or '*')Text

Outputs

The output connections this node provides:

NameDescriptionTyperowsThe data from the inserted rows, if 'Returning' is usedJSONrowCountThe number of rows that were successfully insertedNumberToolThe tool version of this node, to be used by LLMsTool

Fields

The configurable fields this node provides:

NameDescriptionTypeTableName of the table to insert intoValue: logsTextDataA JSON object or an array of JSON objects to insertValue: [{"level": "info", "message": "process started"}]JSON[]ReturningOptional. Columns to return after insertion (e.g., 'id' or '*')Value: *TextPG_CONNECTION_STRINGPostgres connection stringDefaultValue: postgres://user:password@localhost:5432/dbnameenv

Last updated on