Supabase.Client.Behaviour behaviour (supabase_potion v0.5.1)
Summary
Callbacks
The behaviour for the Supabase Client. This behaviour is used to define the API for a Supabase Client.
Callbacks
@callback get_client() :: {:ok, Supabase.Client.t()} | {:error, :not_found}
@callback get_client(pid() | atom()) :: {:ok, Supabase.Client.t()} | {:error, :not_found}
Link to this callback
init()
@callback init() :: {:ok, Supabase.Client.t()} | {:error, Ecto.Changeset.t()}
The behaviour for the Supabase Client. This behaviour is used to define the API for a Supabase Client.
If you're implementing a Self Managed Client as the Supabase.Client, this behaviour is already implemented for you.
If you're implementing a One Off Client as the Supabase.Client, you need to implement this behaviour in case you want to use the integration with Supabase.GoTrue for Plug based application or Phoenix.LiveView applications.