prestige v2.0.0 Prestige.Session View Source

Struct that hold connection information as well and current transactions and prepared statements. Needed for all interactions with presto

Example

session = Presto.new_session(url: "http://localhost:8080", user: "bbalser", catalog: "hive", schema: "default")

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %Prestige.Session{
  catalog: String.t(),
  prepared_statements: [String.t()],
  receive_timeout: term(),
  schema: String.t(),
  transaction_id: String.t(),
  url: String.t(),
  user: String.t()
}

Link to this section Functions

Link to this function

add_prepared_statement(session, prepared_statement)

View Source
Link to this function

remove_prepared_statement(session, name)

View Source
Link to this function

set_transaction_id(session, transaction_id)

View Source