class
TDS::ResultSet
- TDS::ResultSet
- DB::ResultSet
- Reference
- Object
Defined in:
tds/result_set.crConstant Summary
-
DATE_FORMAT =
Time::Format.new("%Y-%m-%d")
-
DATETIME_FORMAT =
Time::Format.new("%Y-%m-%d %H:%M:%S")
Constructors
Instance Method Summary
-
#column_count : Int32
Returns the number of columns in the result
- #column_name(index) : String
-
#move_next : Bool
Move the next row in the result.
-
#next_column_index : Int32
Returns the column index that corresponds to the next
#read
. - #read(t : Int64.class) : Int64
- #read(t : Float64.class) : Float64
- #read(t : (Float64 | ::Nil).class) : Float64 | Nil
- #read(t : Float32.class) : Float32
- #read(t : (Float32 | ::Nil).class) : Float32 | Nil
- #read(t : Time.class) : Time
- #read(t : (Time | ::Nil).class) : Time | Nil
- #read(t : Bool.class) : Bool
- #read(t : (Bool | ::Nil).class) : Bool | Nil
-
#read
Reads the next column value
Constructor Detail
Instance Method Detail
def column_count : Int32
#
Description copied from class DB::ResultSet
Returns the number of columns in the result
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
def next_column_index : Int32
#
Description copied from class DB::ResultSet
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
.