View Source Avalanche.StatementRequest (Avalanche v0.12.2)

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

Link to this section Summary

Functions

Builds a statement execution request to run.

Runs a statement execution request.

Link to this section Types

@type body() :: map() | nil
@type t() :: %Avalanche.StatementRequest{
  body: body(),
  headers: keyword(),
  options: keyword(),
  path: String.t(),
  token: String.t() | keyword(),
  url: url()
}
@type url() :: String.t() | URI.t()

Link to this section Functions

Link to this function

build(statement, params, options)

View Source
@spec build(String.t(), list(), keyword()) :: 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}.