class

ODPI::ResultSet

Inherits DB::ResultSet < DB::Disposable < Reference < Object

Constructors

new(statement : Statement, num_cols : Int32)
Source

Instance methods

column_count

Returns the number of columns in the result

Source
column_name(index : Int32) : String

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

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 : Int32.class) : Int32
Source
read(t : Int32 | ::Nil.class) : Int32 | Nil
Source
read(t : Int64.class) : Int64
Source
read(t : Int64 | ::Nil.class) : Int64 | Nil
Source
read(t : Float32.class) : Float32
Source
read(t : Float32 | ::Nil.class) : Float32 | Nil
Source
read(t : Float64.class) : Float64
Source
read(type : Float64 | ::Nil.class) : Float64 | Nil
Source
read(t : Bool.class) : Bool
Source
read(t : Time.class, pattern : String = "%Y-%m-%d %H:%M:%S.%N") : Time
Source
read(t : String.class) : String
Source
read(type : String | ::Nil.class) : String | Nil
Source
read

Reads the next column value

Source
rows_affected
Source