We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, thanks for writing this package. I'm trying to delete all rows in a table (see below)
This:
var results map[string]interface{} err := supabase.DB.From("events").Delete().Execute(&results) if err != nil { panic(err) }
Panics with this:
panic: 21000: DELETE requires a WHERE clause
It seems incongruous that this is required:
err := supabase.DB.From("events").Delete().Like("evt_name","*").Execute(&results)
When this just works in Postgres:
DELETE from events
Is this a bug or a feature or am I missing something?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
supabase-go is simply trying to mimic the original supabase APIs
as you can see here on their js docs a filter is always required when performing a DELETE
Sorry, something went wrong.
No branches or pull requests
Hi, thanks for writing this package. I'm trying to delete all rows in a table (see below)
This:
Panics with this:
It seems incongruous that this is required:
When this just works in Postgres:
Is this a bug or a feature or am I missing something?
Thanks in advance.
The text was updated successfully, but these errors were encountered: