SqlExecutor.query() method

Run a statement.

Signature:

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.

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