SQLiteStatement

interface SQLiteStatement

Prepared statement of a SQLiteConnection.

Functions

Link copied to clipboard
abstract suspend fun bind(parameters: List<Any?>)

Binds positional parameters for the next run or step. Values are null, Long, Double, String or a Node.js Buffer.

Link copied to clipboard
abstract suspend fun finalize()
Link copied to clipboard
abstract suspend fun reset()

Rewinds the statement so step starts from the first row again.

Link copied to clipboard
abstract suspend fun run(): Long

Executes the statement, returns the number of changed rows.

Link copied to clipboard
abstract suspend fun step(): Array<dynamic>?

Fetches the next row as column values, null when there are no more rows.