ProtectedValue

Represents a protected Value.

SQLite may perform an implicit type conversion to match the requested value type. If conversion is not feasible then null is returned.

Inheritors

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
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.