Supabase.Client.Conn behaviour (supabase_potion v0.5.1)

Conn configuration for Supabase Client. This schema is used to configure the connection options. This schema is embedded in the Supabase.Client.

Fields

  • :base_url - The Supabase Project URL to use. This option is required.
  • :api_key - The Supabase ProjectAPI Key to use. This option is required.
  • :access_token - The access token to use. Default to the API key.

For more information about the connection options, see the documentation for the client.

Summary

Types

@opaque changeset()
@type params() :: %{
  api_key: String.t(),
  access_token: String.t(),
  base_url: String.t()
}
@type t() :: %Supabase.Client.Conn{
  access_token: String.t(),
  api_key: String.t(),
  base_url: String.t()
}

Callbacks

Link to this callback

changeset(t, map)

(optional)
@callback changeset(t(), map()) :: changeset()
Link to this callback

parse(map)

(optional)
@callback parse(map()) :: {:ok, t()} | {:error, changeset()}

Functions

Link to this function

changeset(schema \\ %__MODULE__{}, params)