NitroSQLite
React native nitro sqliteHybrid Objects

API Reference / react-native-nitro-sqlite / NitroSQLitePreparedStatement

Interface: NitroSQLitePreparedStatement

TypeScriptC++

Source files: TypeScript · C++

Native prepared statement returned by NitroSQLite.native.prepare().

Extends

  • HybridObject<{ android: "c++"; ios: "c++"; }>

Properties

isFinalized

readonly isFinalized: boolean

Defined in: specs/NitroSQLitePreparedStatement.nitro.ts:12

Whether the native statement has been finalized.

Methods

execute()

execute(params?): NitroSQLiteQueryResult

Defined in: specs/NitroSQLitePreparedStatement.nitro.ts:19

Execute on the calling thread, replacing the previous parameter bindings. Throws after finalization or connection closure.

Parameters

params?

SQLiteQueryParams

Values bound to positional placeholders.

Returns

NitroSQLiteQueryResult

Native query rows, affected row count, insert ID, and metadata.


executeAsync()

executeAsync(params?): Promise<NitroSQLiteQueryResult>

Defined in: specs/NitroSQLitePreparedStatement.nitro.ts:25

Execute on a background thread, replacing the previous parameter bindings. Rejects after finalization or connection closure.

Parameters

params?

SQLiteQueryParams

Values bound to positional placeholders.

Returns

Promise<NitroSQLiteQueryResult>

A promise of the native query result.


finalize()

finalize(): void

Defined in: specs/NitroSQLitePreparedStatement.nitro.ts:27

Release the native statement. Repeated calls are safe.

Returns

void