Supabase.ClientOptions (supabase v0.1.0)
A simple changeset that validates and parses client options.
Usually this is used internally by Supabase module, but can be used to
validate and parse client options manually using parse/1 function.
Options
:client_name- The name of the client. This is used to identify the client in the connection pool. This option is required.:db- The database options. This is used to configure the database connection. This option is required.:schema- The default schema to use. Defaults to"public".
:global- Global options. This is used to configure global options that will be used on each request. This option is required.:headers- Additional headers to use on each request.
:auth- Authentication options. This is used to configure authentication options. This option is required.:auto_refresh_token- Automatically refresh the token when it expires. Defaults totrue.:debug- Enable debug mode. Defaults tofalse.:detect_session_in_url- Detect session in URL. Defaults totrue.:flow_type- Authentication flow type. Defaults to"web".:persist_session- Persist session. Defaults totrue.:storage- Storage type.:storage_key- Storage key.
Summary
Types
Functions
Link to this function
parse(attrs)
@spec parse(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()} | {:error, {atom(), Ecto.Changeset.t()}}
Link to this function
to_client_info(data, conns)
@spec to_client_info(t(), [Supabase.Connection.t()]) :: Supabase.Client.params()