A backend adapter for PostgreSQL. This package is optimized for use with Supabase but works with any standard PostgreSQL database.
@quatrain/backend abstract adapter.pg (node-postgres) library for high performance.npm install @quatrain/backend-postgres pg
import { Backend } from '@quatrain/backend'
import { PostgresAdapter } from '@quatrain/backend-postgres'
const adapter = new PostgresAdapter({ config: { connectionString: '...' } })
Backend.addAdapter(adapter, 'default', true)
All TIMESTAMP WITHOUT TIME ZONE values are interpreted as UTC. The adapter configures the pg driver's type parsers to return timestamps as ISO8601 strings with the Z suffix, ensuring consistent timezone handling regardless of the server's local timezone.
This means:
2026-02-06 08:24:06.034) are treated as UTC2026-02-06T08:24:06.034Z for proper parsingFor concrete examples and usage guides, please refer to the How-To Guide.
AGPL-3.0-only