getString

open fun getString(index: Int): String?

Converts the buffer for provided column index to a String?

Returns null if that index was NULL in the result. Conversion of the result to String happens as follows:

  • For column with DATE type, delegates to getDate, then converts to string

  • For column with TIME/TIME2 type, delegates to getDuration, then converts to String

  • For column with DATETIME/TIMESTAMP/DATETIME2/TIMESTAMP2 type, delegates to getDateTime, converts to String

  • Otherwise, delegates to getBytes and converts individual bytes to chars.

Parameters

index

Integer index of the column to read