View Source Avalanche.StatementRequest (Avalanche v0.13.0)

The execute statement request struct.

Struct fields:

  • :url - the HTTP request URL (e.g. https://account-id.snowflakecomputing.com)

  • :headers - the HTTP request headers

  • :body - the HTTP request body

  • :token - the HTTP Bearer authentication token

  • :options - options to customize HTTP pipeline steps

Summary

Functions

Builds a statement execution request to run.

Runs a statement execution request.

Types

@type body() :: map() | nil
@type t() :: %Avalanche.StatementRequest{
  body: body(),
  headers: %{optional(binary()) => [binary()]},
  options: Keyword.t(),
  path: String.t(),
  token: String.t() | Keyword.t(),
  url: url()
}
@type url() :: String.t() | URI.t()

Functions

Link to this function

build(statement, params, options)

View Source
@spec build(String.t(), list(), Keyword.t()) :: t()

Builds a statement execution request to run.

Link to this function

run(request, opts \\ [])

View Source

Runs a statement execution request.

Returns {:ok, response} or {:error, exception}.