View Source Prestige (prestige v3.0.0)
An elixir client for Prestodb.
Link to this section Summary
Link to this section Types
@type query_opts() :: [{:name, String.t()}]
Link to this section Functions
@spec close(session :: Prestige.Session.t(), name :: String.t()) :: {:ok, Prestige.Session.t()} | {:error, term()}
@spec close!(session :: Prestige.Session.t(), name :: String.t()) :: Prestige.Session.t()
@spec execute(session :: Prestige.Session.t(), statement :: String.t()) :: {:ok, Prestige.Result.t()} | {:error, term()}
@spec execute(session :: Prestige.Session.t(), name :: String.t(), args :: list()) :: {:ok, Prestige.Result.t()} | {:error, term()}
@spec execute!(session :: Prestige.Session.t(), statement :: String.t()) :: Prestige.Result.t()
@spec execute!(session :: Prestige.Session.t(), name :: String.t(), args :: list()) :: Prestige.Result.t()
@spec new_session(keyword()) :: Prestige.Session.t()
@spec prepare( session :: Prestige.Session.t(), name :: String.t(), statement :: String.t() ) :: {:ok, Prestige.Session.t()} | {:error, term()}
@spec prepare!( session :: Prestige.Session.t(), name :: String.t(), statement :: String.t() ) :: Prestige.Session.t()
@spec query( session :: Prestige.Session.t(), statement :: String.t(), args :: list(), opts :: query_opts() ) :: {:ok, Prestige.Result.t()} | {:error, term()}
@spec query!( session :: Prestige.Session.t(), statement :: String.t(), args :: list(), opts :: query_opts() ) :: Prestige.Result.t()
@spec stream!( session :: Prestige.Session.t(), statement :: String.t(), args :: list(), opts :: query_opts() ) :: Enumerable.t()
@spec transaction( session :: Prestige.Session.t(), function :: (session :: Prestige.Session.t() -> transaction_return()) ) :: term()