class PG::ResultSet

Defined in:

pg/result_set.cr
pg_ext/big_rational.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(statement, fields : Array(PQ::Field) | Nil) #

[View source]

Instance Method Detail

def column_count : Int32 #
Description copied from class DB::ResultSet

Returns the number of columns in the result


[View source]
def column_name(index : Int32) : String #
Description copied from class DB::ResultSet

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


[View source]
def column_type(index : Int32) #

[View source]
def move_next : Bool #
Description copied from class DB::ResultSet

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


[View source]
def read(t : Array(T).class) : Array(T) forall T #

[View source]
def read(t : (Array(T) | ::Nil).class) : Array(T) | Nil forall T #

[View source]
def read(t : BigRational.class) #

[View source]
def read(t : (BigRational | ::Nil).class) #

[View source]
def read #
Description copied from class DB::ResultSet

Reads the next column value


[View source]
def rows_affected : Int64 #

[View source]