Closed AlbinoGeek closed 2 years ago
I can't get this package to function against supabase.co
supabase.co
Whether I use the Anon key or the Service key, I can't select anything.
head
false
[]
true
""
func TestSelect(t *testing.T) { db := postgrest.NewClient( "https://<project-ref>.supabase.co/rest/v1/", "public", map[string]string{}, ) db.TokenAuth("...") res, count, err := db. From("profiles"). Select("*", "", false). // also tried specifying columns ExecuteString() spew.Dump(res, count, err) if err != nil { t.Fatalf("error returned: %v", err) } if res == "[]" || res == "" { t.Fatalf("no result") } }
=== RUN TestSelect (string) (len=2) "[]" (int64) 0 (interface {}) <nil> select_test.go:30: no result --- FAIL: TestSelect (0.29s)
Hey If you have time we can look into it on discord. You can pick a time after 5pm GMT 🙂
It's now after 5PM GMT :)
I'd need an invite, or DM me -- I'm not on the Discord.
My nick is
DamonB#4682
Synopsis
I can't get this package to function against
supabase.co
Details
Whether I use the Anon key or the Service key, I can't select anything.
head
set tofalse
, I get[]
head
set totrue
, I get""
Reproduction