Skip to content

Commit

Permalink
feat: missing filter builder functions (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedsoupe authored Dec 31, 2024
1 parent e22c90b commit 01fa19b
Show file tree
Hide file tree
Showing 6 changed files with 417 additions and 93 deletions.
2 changes: 1 addition & 1 deletion lib/supabase/postgrest.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defmodule Supabase.PostgREST do

## Filter Builder

for {fun, arity} <- FilterBuilder.__info__(:functions) do
for {fun, arity} <- FilterBuilder.__info__(:functions), fun != :process_condition do
1..arity
|> Enum.map(&Macro.var(:"arg_#{&1}", QueryBuilder))
|> then(fn args ->
Expand Down
1 change: 1 addition & 0 deletions lib/supabase/postgrest/builder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule Supabase.PostgREST.Builder do
@doc "Creates a new `#{__MODULE__}` instance"
def new(%Client{} = client, relation: relation) do
%__MODULE__{
client: client,
schema: client.db.schema,
method: :get,
params: %{},
Expand Down
Loading

0 comments on commit 01fa19b

Please sign in to comment.