module Presto

Defined in:

presto.cr
presto/client.cr
presto/connection.cr
presto/decoder.cr
presto/presto_types.cr
presto/result_set.cr
presto/server_info.cr
presto/version.cr

Constant Summary

DEFAULT_HEADERS = HTTP::Headers {"user_agent" => "presto-crystal/#{VERSION}"}
PRESTO_HEADERS = {"user_agent" => "User-Agent", "user" => "X-Presto-User", "source" => "X-Presto-Source", "catalog" => "X-Presto-Catalog", "path" => "X-Presto-Path", "time_zone" => "X-Presto-Time-Zone", "language" => "X-Presto-Language", "trace_token" => "X-Presto-Trace-Token", "session" => "X-Presto-Session", "set_catalog" => "X-Presto-Set-Catalog", "set_schema" => "X-Presto-Set-Schema", "set_path" => "X-Presto-Set-Path", "set_session" => "X-Presto-Set-Session", "clear_session" => "X-Presto-Clear-Session", "set_role" => "X-Presto-Set-Role", "role" => "X-Presto-Role", "prepared_statement" => "X-Presto-Prepared-Statement", "added_prepare" => "X-Presto-Added-Prepare", "deallocated_prepare" => "X-Presto-Deallocated-Prepare", "transaction_id" => "X-Presto-Transaction-Id", "started_transaction_id" => "X-Presto-Started-Transaction-Id", "clear_transaction_id" => "X-Presto-Clear-Transaction-Id", "client_info" => "X-Presto-Client-Info", "client_tags" => "X-Presto-Client-Tags", "client_capabilities" => "X-Presto-Client-Capabilities", "resource_estimate" => "X-Presto-Resource-Estimate", "extra_credential" => "X-Presto-Extra-Credential", "current_state" => "X-Presto-Current-State", "max_wait" => "X-Presto-Max-Wait", "max_size" => "X-Presto-Max-Size", "task_instance_id" => "X-Presto-Task-Instance-Id", "page_token" => "X-Presto-Page-Sequence-Id", "page_end_sequence_id" => "X-Presto-Page-End-Sequence-Id", "buffer_complete" => "X-Presto-Buffer-Complete"}
VERSION = "0.1.0"