Skip to content

Postgres

SQL.Postgres provides tagged-template queries over a Postgres connection. Queries are Effects with typed SqlError failures, interruption, and tracing.

Install @alchemy.run/sql and the Effect Postgres driver:

Terminal window
pnpm add @alchemy.run/sql@latest @effect/sql-pg
import * as SQL from "@alchemy.run/sql/Postgres";