SqlExecutor interface

The minimum this package needs of a Postgres connection.

Signature:

export interface SqlExecutor 

Remarks

Deliberately not an ORM client. These installers write DDL — trigger functions, archive schemas, pg_cron jobs — which is startup work, orthogonal to how the application queries afterwards. Prisma Next's client offers db.raw.sql as a tagged template with a declared row schema, which is the wrong shape for arbitrary DDL, and tying the installers to it would make them unusable from a migration or a standalone script.

A pg.Pool satisfies this as it is, so a consumer passes one directly.

Methods

Method

Description

query(sql, values)

Run a statement.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.