Result

expect class Result : Iterable<String> (source)

Result represents a row of result set returned by a Query.

A Result may be referenced only while the ResultSet that contains it is open. An Attempt to reference a Result after calling ResultSet.close on the ResultSet that contains it will throw and IllegalStateException

actual class Result : DelegatedClass<<Error class: unknown class>> , Iterable<String> (source)
actual class Result : Iterable<String> (source)

Properties

Link copied to clipboard
expect val count: Int

The number of the values in the result.

actual val count: Int
actual val count: Int
Link copied to clipboard
expect val keys: List<String>

A list of keys

actual val keys: List<String>
actual val keys: List<String>

Functions

Link copied to clipboard
expect operator fun contains(key: String): Boolean

Tests whether key exists or not.

actual operator fun contains(key: String): Boolean
actual operator fun contains(key: String): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun Result.get(index: Int): Fragment

Subscript access to a Fragment object of the projecting result value at the given index.

operator fun Result.get(key: String): Fragment

Subscript access to a Fragment object of the projecting result value for the given key.

Link copied to clipboard
expect fun getArray(index: Int): Array?

The result at the given index interpreted as an Array. Returns null if the value cannot be so interpreted.

expect fun getArray(key: String): Array?

The result value for the given key as a Array Returns null if the key doesn't exist or if the value is not an Array

actual fun getArray(index: Int): Array?
actual fun getArray(key: String): Array?
actual fun getArray(index: Int): Array?
actual fun getArray(key: String): Array?
Link copied to clipboard
expect fun getBlob(index: Int): Blob?

The result at the given index interpreted as a Blob. Returns null if the value cannot be so interpreted.

expect fun getBlob(key: String): Blob?

The result value for the given key as a Blob Returns null if the key doesn't exist or if the value is not a Blob

actual fun getBlob(index: Int): Blob?
actual fun getBlob(key: String): Blob?
actual fun getBlob(index: Int): Blob?
actual fun getBlob(key: String): Blob?
Link copied to clipboard
expect fun getBoolean(index: Int): Boolean

The result at the given index interpreted as a boolean. Returns false if the value cannot be so interpreted.

expect fun getBoolean(key: String): Boolean

The result value for the given key as a boolean Returns false if the key doesn't exist or if the value is not a boolean

actual fun getBoolean(index: Int): Boolean
actual fun getBoolean(key: String): Boolean
actual fun getBoolean(index: Int): Boolean
actual fun getBoolean(key: String): Boolean
Link copied to clipboard
expect fun getDate(index: Int): Instant?

The result at the given index interpreted as an Instant date. Returns null if the value cannot be so interpreted.

expect fun getDate(key: String): Instant?

The result value for the given key as an Instant date Returns null if the key doesn't exist or if the value is not a date

actual fun getDate(index: Int): Instant?
actual fun getDate(key: String): Instant?
actual fun getDate(index: Int): Instant?
actual fun getDate(key: String): Instant?
Link copied to clipboard
expect fun getDictionary(index: Int): Dictionary?

The result at the given index interpreted as a Dictionary. Returns null if the value cannot be so interpreted.

expect fun getDictionary(key: String): Dictionary?

The result value for the given key as a Dictionary Returns null if the key doesn't exist or if the value is not a Dictionary

actual fun getDictionary(index: Int): Dictionary?
actual fun getDictionary(key: String): Dictionary?
actual fun getDictionary(index: Int): Dictionary?
actual fun getDictionary(key: String): Dictionary?
Link copied to clipboard
expect fun getDouble(index: Int): Double

The result at the given index interpreted as a double. Returns 0.0 if the value cannot be so interpreted.

expect fun getDouble(key: String): Double

The result value for the given key as a double Returns 0.0 if the key doesn't exist or if the value is not a double

actual fun getDouble(index: Int): Double
actual fun getDouble(key: String): Double
actual fun getDouble(index: Int): Double
actual fun getDouble(key: String): Double
Link copied to clipboard
expect fun getFloat(index: Int): Float

The result at the given index interpreted as a float. Returns 0.0F if the value cannot be so interpreted.

expect fun getFloat(key: String): Float

The result value for the given key as a float Returns 0.0F if the key doesn't exist or if the value is not a float

actual fun getFloat(index: Int): Float
actual fun getFloat(key: String): Float
actual fun getFloat(index: Int): Float
actual fun getFloat(key: String): Float
Link copied to clipboard
expect fun getInt(index: Int): Int

The result at the given index interpreted as and an int. Returns 0 if the value cannot be so interpreted.

expect fun getInt(key: String): Int

The result value for the given key as an int Returns 0 if the key doesn't exist or if the value is not a int

actual fun getInt(index: Int): Int
actual fun getInt(key: String): Int
actual fun getInt(index: Int): Int
actual fun getInt(key: String): Int
Link copied to clipboard
expect fun getLong(index: Int): Long

The result at the given index interpreted as a long. Returns 0 if the value cannot be so interpreted.

expect fun getLong(key: String): Long

The result value for the given key as a long Returns 0L if the key doesn't exist or if the value is not a long

actual fun getLong(index: Int): Long
actual fun getLong(key: String): Long
actual fun getLong(index: Int): Long
actual fun getLong(key: String): Long
Link copied to clipboard
expect fun getNumber(index: Int): Number?

The result at the given index interpreted as a Number. Returns null if the value cannot be so interpreted.

expect fun getNumber(key: String): Number?

The result value for the given key as a Number Returns null if the key doesn't exist or if the value is not a Number

actual fun getNumber(index: Int): Number?
actual fun getNumber(key: String): Number?
actual fun getNumber(index: Int): Number?
actual fun getNumber(key: String): Number?
Link copied to clipboard
expect fun getString(index: Int): String?

The result at the given index converted to a String

expect fun getString(key: String): String?

The result value for the given key as a String Returns null if the key doesn't exist.

actual fun getString(index: Int): String?
actual fun getString(key: String): String?
actual fun getString(index: Int): String?
actual fun getString(key: String): String?
Link copied to clipboard
expect fun getValue(index: Int): Any?

The result value at the given index.

expect fun getValue(key: String): Any?

The result value for the given key as an Object Returns null if the key doesn't exist.

actual fun getValue(index: Int): Any?
actual fun getValue(key: String): Any?
actual fun getValue(index: Int): Any?
actual fun getValue(key: String): Any?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
expect open operator override fun iterator(): Iterator<String>

Gets an iterator over the result's keys.

actual open operator override fun iterator(): Iterator<String>
actual open operator override fun iterator(): Iterator<String>
Link copied to clipboard
expect fun toJSON(): String
actual fun toJSON(): String
actual fun toJSON(): String
Link copied to clipboard
expect fun toList(): List<Any?>

Gets all the values as a List. The types of the values contained in the returned List are Array, Blob, Dictionary, Number types, String, and null.

actual fun toList(): List<Any?>
actual fun toList(): List<Any?>
Link copied to clipboard
expect fun toMap(): Map<String, Any?>

Gets all values as a Map. The keys in the returned map are the names of columns that have values. The types of the values are Array, Blob, Dictionary, Number types, String, and null.

actual fun toMap(): Map<String, Any?>
actual fun toMap(): Map<String, Any?>
Link copied to clipboard
open override fun toString(): String