Skip to content

zoedsoupe/storage-ex

Repository files navigation

Supabase Storage

Storage implementation for the supabase_potion SDK in Elixir.

Installation

def deps do
  [
    {:supabase_potion, "~> 0.3"},
    {:supabase_storage, "~> 0.2"}
  ]
end

Usage

Firstly you need to initialize your Supabase client(s) as can be found on the supabase_potion documentation:

iex> Supabase.init_client(%{name: Conn, conn: %{base_url: "<supa-url>", api_key: "<supa-key>"}})
{:ok, #PID<>}

Now you can pass the Client to the Supabase.Storage functions as a PID or the name that was registered on the client initialization:

iex> Supabase.Storage.list_buckets(pid | client_name)  

About

Elixir client to interact with Supabase Storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published