Mget
Bun

method

sqlite.SQLTagStore.get

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

Executes the given SQL query and returns the first resulting row as an object.

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 object representing the first row returned by the query, or undefined if no rows are returned.

Referenced types

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