# SqlExecutor interface · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.sqlexecutor/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

The minimum this package needs of a Postgres connection.

**Signature:**

```typescript
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)](https://imqueue.org/api/pg-prisma/latest/pg-prisma.sqlexecutor.query/) | Run a statement. |

