PostgreSQL

Connect to PostgreSQL database

Configuration

Query (SELECT)

Operation
Query (SELECT)
Host*
localhost or your.database.host
Port*
5432
Database Name*
your_database
Username*
postgres
Password*
••••••••
SSL Mode
Select...
SQL Query*
sql
SELECT * FROM users WHERE active = true
Query (SELECT) (postgresql_query)

Execute a SELECT query on PostgreSQL database

Input
ParameterTypeRequiredDescription
hoststringYesPostgreSQL server hostname or IP address
portnumberYesPostgreSQL server port (default: 5432)
databasestringYesDatabase name to connect to
usernamestringYesDatabase username
passwordstringYesDatabase password
sslstringNoSSL connection mode (disabled, required, preferred)
querystringYesSQL SELECT query to execute
Output
ParameterTypeDescription
messagestringOperation status message
rowsarrayArray of rows returned from the query

Insert Data

Operation
Insert Data
Host*
localhost or your.database.host
Port*
5432
Database Name*
your_database
Username*
postgres
Password*
••••••••
SSL Mode
Select...
Table Name*
users
Data (JSON)*
json
{\n "name": "John Doe",\n "email": "john@example.com",\n "active": true\n}
Insert Data (postgresql_insert)

Insert data into PostgreSQL database

Input
ParameterTypeRequiredDescription
hoststringYesPostgreSQL server hostname or IP address
portnumberYesPostgreSQL server port (default: 5432)
databasestringYesDatabase name to connect to
usernamestringYesDatabase username
passwordstringYesDatabase password
sslstringNoSSL connection mode (disabled, required, preferred)
tablestringYesTable name to insert data into
dataobjectYesData object to insert (key-value pairs)
Output
ParameterTypeDescription
messagestringOperation status message
rowsarrayInserted data (if RETURNING clause used)

Update Data

Operation
Update Data
Host*
localhost or your.database.host
Port*
5432
Database Name*
your_database
Username*
postgres
Password*
••••••••
SSL Mode
Select...
Table Name*
users
Update Data (JSON)*
json
{\n "name": "Jane Doe",\n "email": "jane@example.com"\n}
WHERE Condition*
id = 1
Update Data (postgresql_update)

Update data in PostgreSQL database

Input
ParameterTypeRequiredDescription
hoststringYesPostgreSQL server hostname or IP address
portnumberYesPostgreSQL server port (default: 5432)
databasestringYesDatabase name to connect to
usernamestringYesDatabase username
passwordstringYesDatabase password
sslstringNoSSL connection mode (disabled, required, preferred)
tablestringYesTable name to update data in
dataobjectYesData object with fields to update (key-value pairs)
wherestringYesWHERE clause condition (without WHERE keyword)
Output
ParameterTypeDescription
messagestringOperation status message
rowsarrayUpdated data (if RETURNING clause used)

Delete Data

Operation
Delete Data
Host*
localhost or your.database.host
Port*
5432
Database Name*
your_database
Username*
postgres
Password*
••••••••
SSL Mode
Select...
Table Name*
users
WHERE Condition*
id = 1
Delete Data (postgresql_delete)

Delete data from PostgreSQL database

Input
ParameterTypeRequiredDescription
hoststringYesPostgreSQL server hostname or IP address
portnumberYesPostgreSQL server port (default: 5432)
databasestringYesDatabase name to connect to
usernamestringYesDatabase username
passwordstringYesDatabase password
sslstringNoSSL connection mode (disabled, required, preferred)
tablestringYesTable name to delete data from
wherestringYesWHERE clause condition (without WHERE keyword)
Output
ParameterTypeDescription
messagestringOperation status message
rowsarrayDeleted data (if RETURNING clause used)

Execute Raw SQL

Operation
Execute Raw SQL
Host*
localhost or your.database.host
Port*
5432
Database Name*
your_database
Username*
postgres
Password*
••••••••
SSL Mode
Select...
SQL Query*
sql
SELECT * FROM table_name
Execute Raw SQL (postgresql_execute)

Execute raw SQL query on PostgreSQL database

Input
ParameterTypeRequiredDescription
hoststringYesPostgreSQL server hostname or IP address
portnumberYesPostgreSQL server port (default: 5432)
databasestringYesDatabase name to connect to
usernamestringYesDatabase username
passwordstringYesDatabase password
sslstringNoSSL connection mode (disabled, required, preferred)
querystringYesRaw SQL query to execute
Output
ParameterTypeDescription
messagestringOperation status message
rowsarrayArray of rows returned from the query

Usage Instructions

Integrate PostgreSQL into the workflow. Can query, insert, update, delete, and execute raw SQL.

Notes

  • Category: tools
  • Type: postgresql