supabase-community / supabase-go

A Go Client library for Supabase
MIT License
197 stars 17 forks source link

Feat: initialize new client with db #1

Closed tranhoangvuit closed 1 year ago

tranhoangvuit commented 1 year ago

What kind of change does this PR introduce?

Initialize new client for supabase-go client.

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Initial new client and start using db function like postgres-go

client, err := supabase.NewClient(API_URL, API_KEY, nil)
    if err != nil {
        fmt.Println("cannot initalize client", err)
    }
    data, count, err := client.From("countries").Select("*", "exact", false).Execute()

Additional context

Add any other context or screenshots.