SQLiteProgram
abstract class SQLiteProgram : SQLiteClosable
|
A base class for compiled SQLite programs.
This class is not thread-safe.
Summary
Public methods | |
---|---|
open Unit |
bindAllArgsAsStrings(bindArgs: Array<String!>!) Given an array of String bindArgs, this method binds all of them in one single call. |
open Unit |
Bind a byte array value to this statement. |
open Unit |
bindDouble(index: Int, value: Double) Bind a double value to this statement. |
open Unit |
Bind a long value to this statement. |
open Unit |
Bind a NULL value to this statement. |
open Unit |
bindString(index: Int, value: String!) Bind a String value to this statement. |
open Unit |
Clears all existing bindings. |
Int |
Unimplemented. |
Protected methods | |
---|---|
open Unit |
Inherited functions | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Public methods
bindAllArgsAsStrings
open fun bindAllArgsAsStrings(bindArgs: Array<String!>!): Unit
Given an array of String bindArgs, this method binds all of them in one single call.
bindBlob
open fun bindBlob(
index: Int,
value: ByteArray!
): Unit
Bind a byte array value to this statement. The value remains bound until clearBindings
is called.
bindDouble
open fun bindDouble(
index: Int,
value: Double
): Unit
Bind a double value to this statement. The value remains bound until clearBindings
is called.
bindLong
open fun bindLong(
index: Int,
value: Long
): Unit
Bind a long value to this statement. The value remains bound until clearBindings
is called. addToBindArgs
bindNull
open fun bindNull(index: Int): Unit
Bind a NULL value to this statement. The value remains bound until clearBindings
is called.
Parameters | |
---|---|
index |
Int: The 1-based index to the parameter to bind null to |
bindString
open fun bindString(
index: Int,
value: String!
): Unit
Bind a String value to this statement. The value remains bound until clearBindings
is called.
clearBindings
open fun clearBindings(): Unit
Clears all existing bindings. Unset bindings are treated as NULL.
getUniqueId
fungetUniqueId(): Int
Deprecated: This method is deprecated and must not be used.
Unimplemented.