Overview
Add PostgreSQL to any ModuleX agent or workflow. PostgreSQL database integration via theasyncpg driver. Provides raw SQL execution + CRUD + upsert + introspection.
Authentication
PostgreSQL Database Credentials
Authenticate using PostgreSQL connection credentials (host/port/user/password/database).Required Credentials
Available Actions
execute_raw_query — Execute a raw SQL statement (SELECT/INSERT/UPDATE/DELETE/DDL). Use $1, $2, ... placeholders for parameterized queries.
execute_raw_query — Execute a raw SQL statement (SELECT/INSERT/UPDATE/DELETE/DDL). Use $1, $2, ... placeholders for parameterized queries.
create_row — INSERT a new row, returning the inserted record
create_row — INSERT a new row, returning the inserted record
delete_row — DELETE rows matching a WHERE condition (returns deleted rows)
delete_row — DELETE rows matching a WHERE condition (returns deleted rows)
update_row — UPDATE rows matching a WHERE condition (returns updated rows)
update_row — UPDATE rows matching a WHERE condition (returns updated rows)
upsert_row — INSERT … ON CONFLICT (conflict_target) DO UPDATE …
upsert_row — INSERT … ON CONFLICT (conflict_target) DO UPDATE …
find_row — SELECT * FROM table WHERE column <op> value
find_row — SELECT * FROM table WHERE column <op> value
execute_query_with_condition — SELECT * FROM table WHERE <condition>
execute_query_with_condition — SELECT * FROM table WHERE <condition>
list_schemas — List all user-visible schemas (excludes pg_catalog etc.)
list_schemas — List all user-visible schemas (excludes pg_catalog etc.)
Response
list_tables — List all tables and views in a schema
list_tables — List all tables and views in a schema
Limits & Quotas
- 60s connection timeout.
find_rowoperator allowlist:=,>,>=,<,!=,<=,LIKE,ILIKE(case-insensitive accepted aslike/iliketoo).asyncpgis imported lazily so the manifest can be inspected even without the driver installed.