class

TDS::ResultSet

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

Constants

DATE_FORMAT = Time::Format.new("%Y-%m-%d")
DATETIME_FORMAT = Time::Format.new("%Y-%m-%d %H:%M:%S")

Constructors

new(statement, iterator : Iterator(Token::Token))
Source

Instance methods

column_count

Returns the number of columns in the result

Source
column_name(index) : String
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 : Int64.class) : Int64
Source
read(t : Float64.class) : Float64
Source
read(t : Float64 | ::Nil.class) : Float64 | Nil
Source
read(t : Float32.class) : Float32
Source
read(t : Float32 | ::Nil.class) : Float32 | Nil
Source
read(t : Time.class) : Time
Source
read(t : Time | ::Nil.class) : Time | Nil
Source
read(t : Bool.class) : Bool
Source
read(t : Bool | ::Nil.class) : Bool | Nil
Source
read

Reads the next column value

Source