-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,021 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,6 @@ result | |
|
||
# Ignore credentials | ||
.env | ||
|
||
.elixir-tools/ | ||
.lexical/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
# Supabase PostgREST | ||
|
||
**TODO: Add description** | ||
[PostgREST](https://postgrest.org/en/v12/) implementation for the `supabase_potion` SDK in Elixir. | ||
|
||
## Installation | ||
|
||
```elixir | ||
def deps do | ||
[ | ||
{:supabase_potion, "~> 0.3"}, | ||
{:supabase_postgrest, "~> 0.1"} | ||
] | ||
end | ||
``` | ||
|
||
## Usage | ||
|
||
Firstly you need to initialize your Supabase client(s) as can be found on the [supabase_potion documentation](https://hexdocs.pm/supabase_potion/Supabase.html#module-starting-a-client): | ||
|
||
```elixir | ||
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.PostgREST` functions as a `PID` or the name that was registered on the client initialization: | ||
|
||
```elixir | ||
iex> Supabase.Storage.list_buckets(pid | client_name) | ||
``` |
Oops, something went wrong.