# SqlExecutor.query() method · @imqueue/pg-prisma

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

Run a statement.

**Signature:**

```typescript
query(sql: string, values?: readonly unknown[]): Promise<{
        rows: unknown[];
    }>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| sql | string | The statement. DDL cannot take bind parameters, so most callers here interpolate a checked identifier rather than binding. |
| values | readonly unknown\[\] | _(Optional)_ Bound parameters, where the statement takes them. |


**Returns:**

Promise<{ rows: unknown\[\]; }>

The result rows.

