BigQuery v0.0.6 BigQuery.Resource

Summary

Functions

BigQuery really doesn’t like if when you try to POST a JSON object that has null values, but doesn’t seem to mind missing fields. So this is just a little helper function to remove any fields with a nil value from a map/struct

Types

response :: %{status_code: integer, body: String.t, headers: headers}

Functions

build_query_string(params)

Specs

build_query_string([{String.t | atom, any}]) :: String.t
clean_up_map(map)

Specs

clean_up_map(map) :: map

BigQuery really doesn’t like if when you try to POST a JSON object that has null values, but doesn’t seem to mind missing fields. So this is just a little helper function to remove any fields with a nil value from a map/struct.

get(url, headers \\ [], opts \\ [timeout: 120000])

Specs

get(String.t, headers, [{:timeout, integer}]) ::
  {:ok, response} |
  {:error, String.t}
post(url, body \\ nil, headers \\ [], opts \\ [timeout: 120000])

Specs

post(String.t, any, [{String.t, String.t}], [{:timeout, integer}]) ::
  {:ok, response} |
  {:error, String.t}