Connect an authorized Postgres database and inspect one bounded read before
considering writes.
Connect Postgres
In the Deepline dashboard, open Integrations → Postgres, then provide either:- A
postgres://orpostgresql://connection string - Individual host, port, database, user, and password fields
Supabase
Use the Supabase Session Pooler connection string. The direct database endpoint may require IPv6, while the Session Pooler provides a broadly reachable public endpoint.- Open the Supabase project and select Connect.
- Select Session pooler as the connection method.
- Confirm the displayed host, port, and username.
- Copy the displayed PostgreSQL URI.
- Replace the password placeholder with the database password.
- In Deepline, open Integrations → Postgres → Change credentials, select Connection string, and paste the URI.
- Select Connect, then Test.
Run SQL
The integration exposes one tool:postgres_run_query. It accepts one SQL
statement, positional binds, a timeout, and a row limit. SELECT and
read-only WITH statements are bounded and run in a read-only transaction.
Mutating and DDL statements execute directly without a write opt-in flag.
The connected database user’s permissions determine which statements are
allowed, so use a read-only database role when writes must be prohibited.
List user tables with the local Deepline CLI:
film_actor:
data.rows, data.rowCount, data.columns, the command
tag, and non-secret connection metadata such as the host, database, and schema.
Connection safeguards
- Postgres credentials are workspace-scoped and encrypted at rest.
- Tool calls always use the saved credential and cannot accept inline database credentials.
- Require TLS is enabled by default. It encrypts the connection without verifying the server certificate. turning it off disables encryption.
- Private, loopback, link-local, reserved, metadata, and other non-public network targets are blocked.
- Deepline resolves and validates DNS answers before pinning the connection to an approved public address.
- Keep reads bounded with
rowLimitand SQLLIMITclauses.