NitroSQLite
react-native-nitro-sqliteType aliases

ExecuteLazyQuery

TypeScript

Source files: TypeScript

ExecuteLazyQuery = <Row>(query, params?) => LazyQueryResult<Row>

Execute a statement synchronously and return a result with on-demand row conversion.

Type Parameters

Row

Row extends QueryResultRow = QueryResultRow

Parameters

query

string

SQL statement with optional positional placeholders.

params?

SQLiteQueryParams

Values bound to the placeholders.

Returns

LazyQueryResult<Row>

Throws

NitroSQLiteError if the connection is busy or the statement fails.

On this page