class PG::ResultSet
- PG::ResultSet
- DB::ResultSet
- Reference
- Object
Defined in:
pg/result_set.crpg_ext/big_rational.cr
Constructors
Instance Method Summary
-
#column_count : Int32
Returns the number of columns in the result
-
#column_name(index : Int32) : String
Returns the name of the column in
index
0-based position. - #column_type(index : Int32)
-
#move_next : Bool
Move the next row in the result.
- #read(t : Array(T).class) : Array(T) forall T
- #read(t : (Array(T) | ::Nil).class) : Array(T) | Nil forall T
- #read(t : String.class) : String
- #read(t : (String | ::Nil).class) : String | Nil
- #read(t : JSON::Any.class) : JSON::Any
- #read(t : (JSON::Any | ::Nil).class) : JSON::Any | Nil
- #read(t : BigRational.class)
- #read(t : (BigRational | ::Nil).class)
-
#read
Reads the next column value
- #rows_affected : Int64
Constructor Detail
Instance Method Detail
def column_count : Int32
#
Description copied from class DB::ResultSet
Returns the number of columns in the result
def column_name(index : Int32) : String
#
Description copied from class DB::ResultSet
Returns the name of the column in index
0-based position.
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