class Presto::ResultSet
- Presto::ResultSet
- DB::ResultSet
- Reference
- Object
Overview
todo because of the way presto works all the data gets returned at once we don't have a cursor consider do the serialization at the time the data comes back.
Defined in:
presto/result_set.crConstructors
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. -
#move_next : Bool
Move the next row in the result.
- #query_results : Presto::QueryResult
-
#read
Reads the next column value
- #request_options : Presto::ConnectionOptions
- #response_headers
- #row_count : Int32
Constructor Detail
def self.new(statement, query_results : QueryResult, response : HTTP::Client::Response, request_options : Presto::ConnectionOptions)
#
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