class

PG::ResultSet

Inherits DB::ResultSet / DB::Disposable / Reference / Object

Constructors

new(statement, fields : Array(PQ::Field) | Nil)
Source

Instance methods

column_count

Returns the number of columns in the result

Source
column_name(index : Int32) : String

Returns the name of the column in index 0-based position.

Source
column_type(index : Int32)
Source
move_next

Move the next row in the result. Return false if no more rows are available. See #each

Source
next_column_index

Returns the column index that corresponds to the next #read.

If the last column of the current row has been read, it must return #column_count.

Source
read(t : Array(T).class) : Array(T) forall T
Source
read(t : Array(T) | ::Nil.class) : Array(T) | Nil forall T
Source
read(t : String.class) : String
Source
read(t : String | ::Nil.class) : String | Nil
Source
read(t : JSON::Any.class) : JSON::Any
Source
read(t : JSON::Any | ::Nil.class) : JSON::Any | Nil
Source
read(t : BigDecimal.class)
Source
read(t : BigDecimal | ::Nil.class)
Source
read(t : BigRational.class)
Source
read(t : BigRational | ::Nil.class)
Source
read

Reads the next column value

Source
rows_affected
Source