# silently() function · @imqueue/pg-prisma

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

Run `fn` with SQL logging suppressed.

**Signature:**

```typescript
export declare function silently<T>(fn: () => Promise<T>): Promise<T>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| fn | () => Promise<T> | Work to run while logging is suppressed. |


**Returns:**

Promise<T>

Whatever `fn` resolves to.

## Remarks

The previous state is restored in a `finally`, so nesting works and a throw still un-suppresses. What it does NOT do is scope the suppression to `fn`'s own queries — the flag is module-wide, so anything else querying concurrently is silenced for as long as `fn` runs.

## Example


```typescript
await silently(() => client.$executeRawUnsafe(startupDdl));
```

