class Presto::ResultSet

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

Constructors

Instance Method Summary

Constructor Detail

def self.new(statement, query_results : QueryResult, response : HTTP::Client::Response, request_options : Presto::ConnectionOptions) #

[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 query_results : Presto::QueryResult #

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

Reads the next column value


[View source]
def request_options : Presto::ConnectionOptions #

[View source]
def response_headers #

[View source]
def row_count : Int32 #

[View source]