View Source Supabase.PostgREST.Builder (supabase_postgrest v0.2.0)

Defines a struct to centralize and accumulate data to be sent to the PostgREST server, parsed.

Summary

Functions

Updates the key Elixir.Supabase.PostgREST.Builder.params and adds a new query params

Updates the key Elixir.Supabase.PostgREST.Builder.headers and adds a new request header

Changes the request body that will be sent to the PostgREST server

Changes the HTTP method that'll be used to execute the query

Removes a request header

Types

t()

@type t() :: %Supabase.PostgREST.Builder{
  body: map(),
  client: Supabase.Client.t(),
  headers: %{required(String.t()) => String.t()},
  method: :get | :post | :put | :patch | :delete,
  params: %{required(String.t()) => String.t()},
  schema: String.t(),
  url: String.t()
}

Functions

add_query_param(b, key, value)

Updates the key Elixir.Supabase.PostgREST.Builder.params and adds a new query params

add_request_header(b, key, value)

Updates the key Elixir.Supabase.PostgREST.Builder.headers and adds a new request header

change_body(q, body)

Changes the request body that will be sent to the PostgREST server

change_method(q, method)

Changes the HTTP method that'll be used to execute the query

del_request_header(b, key)

Removes a request header

new(client, list)

Creates a new Elixir.Supabase.PostgREST.Builder instance