Skip to content
# Type Alias: QueryExecutor

QueryExecutor = (sql, params) => Promise<QueryExecutionResult&gt;

Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:17

Executes raw SQL with normalized arguments and returns the driver rows.

Parameters

sql

string

The SQL string to execute.

params

readonly unknown[]

Parameter array aligned with the SQL placeholders.

Returns

Promise<QueryExecutionResult&gt;

A promise resolving to normalized query execution output.

Released under the MIT License.