DuplicatedValue

Value obtained from Value.duplicate and for which the caller take ownership.

Properties

Link copied to clipboard
val bytes: Int

Returns the length of the value in bytes.

Link copied to clipboard

Returns the current text encoding of the value, assuming that type returns ksqlite.types.SqliteDataType.TEXT.

Link copied to clipboard

Whether the value originated from a bound parameter.

Link copied to clipboard

Returns the type of the value after a numeric conversion as been done. The conversion is only made if the value can be converted.

Link copied to clipboard

Returns the subtype of the value.

Link copied to clipboard

Data type of the value.

Functions

Link copied to clipboard

Duplicates the value, returning a DuplicatedValue.

Link copied to clipboard
fun free()

Frees the value previously obtained using duplicate. This value can no longer be used after that call.

Link copied to clipboard
inline fun <Data : Any> getAs(type: String? = null): Data?

Returns the value as Data or null if no data is associated with type.

Link copied to clipboard
Link copied to clipboard

Returns the value as ByteArray.

Link copied to clipboard

Returns the value as Double.

Link copied to clipboard
fun getAsInt(): Int

Returns the value as Int.

Link copied to clipboard

Returns the value as Long.

Link copied to clipboard

Returns the value as String.