supabase-community / supabase-go

A Go Client library for Supabase
MIT License
120 stars 8 forks source link

Missing Examples for other CRUD operations #2

Open ASoldo opened 9 months ago

ASoldo commented 9 months ago

Can you put some examples in README.md how to work with database like Inserts, Updates and other crud operations (just as a mock to show correct usage of api).

So far I've managed to make it run by following the test file and putting that in my main.go.

Thank you!

2lineofcode commented 1 month ago

up

tranhoangvuit commented 1 month ago

Thank @ASoldo , @2lineofcode , I will update examples soon.

Thinker-08 commented 4 weeks ago

Same here looking for examples of CRUD operations

princefishthrower commented 3 weeks ago

Would also be interested. For example, why does Limit() require two parameters?

UPDATE: did some digging here, turns out all the table CRUD methods are from another repo, postgrest-go, you can snoop around in the tests for more advanced queries, i.e. like my Limit() question: https://github.com/supabase-community/postgrest-go/blob/main/filterbuilder_test.go