Hyperterse connects to your existing database. It does not create or manage
databases — you provide a running PostgreSQL instance and a connection string.
Adapter configuration
Create an adapter file inapp/adapters/:
app/adapters/primary-db.terse
Connection options
Pass driver-level settings through theoptions map. All values must be strings.
SSL negotiation mode. Use
require or stricter in production.Values: disable, allow, prefer, require, verify-ca, verify-fullConnection timeout in seconds. Connections that exceed this threshold are
terminated.
Application name reported to the PostgreSQL server. Useful for identifying
connections in
pg_stat_activity.Maximum number of connections in the pool.
Recommended permissions
Create a dedicated database user for Hyperterse and grant only the privileges your tools require:Verify the connection
Start the server and confirm the adapter connects:Usage
PostgreSQL tools execute standard SQL through the adapter. Use{{ inputs.field }} placeholders for parameterized values — they are never interpolated as raw SQL.
app/tools/get-user/config.terse
jsonb operators, tsvector search, array operations, CTEs, and window functions are all supported. Use standard PostgreSQL syntax in statements.
Read replicas
For read-heavy workloads, configure separate adapters for primary and replica databases:app/adapters/primary.terse
app/adapters/replica.terse
Troubleshooting
Connection refused
Verify that PostgreSQL is running and the host is reachable:SSL certificate errors
For self-signed certificates, setsslmode to require (encrypts traffic without certificate verification). For full verification, use verify-ca or verify-full and ensure the CA certificate is installed on the machine running Hyperterse.