class ODPI::ResultSet

Defined in:

odpi/result_set.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(statement : Statement, num_cols : Int32) #

[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 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 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.


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

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

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

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

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

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

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

[View source]
def read(type : (Float64 | ::Nil).class) : Float64 | Nil #

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

[View source]
def read(t : Time.class, pattern : String = "%Y-%m-%d %H:%M:%S.%N") : Time #

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

[View source]
def read(type : (String | ::Nil).class) : String | Nil #

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

Reads the next column value


[View source]
def rows_affected : Int64 #

[View source]