ResultSet

postgres.ql

Constructor Overview

Function Overview

Function Description
native fun hasNext() Checks if there are more rows to fetch, and moves the ResultSet to the next row.
native fun getValue(column) Gets the value from the current row by either the column name or index.
native fun close() Closes the ResultSet, freeing it from memory. NOTE: This also closes the resulting statement, if it is not a PreparedStatement

Field Overview

Field Description
ResultMetadata metadata
java _resultSet

The internal result set. ResultSet

java _statement

The statement that created the ResultSet, for closing purposes. This is an Optional that holds a Statement . This may not need to be an Optional, and should probably be changed in the future. Optional

Constructors

ResultSet(metadata, _resultSet, _statement) link

Functions

native fun hasNext() link

Checks if there are more rows to fetch, and moves the ResultSet to the next row.

Returns boolean

If there are more rows to fetch

native fun getValue(column) link

Gets the value from the current row by either the column name or index.

Params
column

The column name or 0-indexed index to get the value from

Returns

The value of the column

native fun close() link

Closes the ResultSet, freeing it from memory.

NOTE: This also closes the resulting statement, if it is not a PreparedStatement