Mall
Bun

method

sqlite.SQLTagStore.all

stringElements: TemplateStringsArray,
...boundParameters: SQLInputValue[]
): Record<string, SQLOutputValue>[];

Executes the given SQL query and returns all resulting rows as an array of objects.

This function is intended to be used as a template literal tag, not to be called directly.

@param stringElements

Template literal elements containing the SQL query.

@param boundParameters

Parameter values to be bound to placeholders in the template string.

@returns

An array of objects representing the rows returned by the query.

Referenced types

type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView
type SQLOutputValue = null | number | bigint | string | NodeJS.NonSharedUint8Array