Postgrest GO

golangci-lint CodeFactor

Golang client for PostgREST. The goal of this library is to make an “ORM-like” restful interface.

Documentation

Full documentation can be found on our website.

Quick start

Install

go get github.com/supabase/postgrest-go

Usage

package main
​
import (
"fmt""github.com/supabase/postgrest-go"
)
​
func main() {
	client := postgrest.NewClient("http://localhost:3000", "", nil)
	if client.ClientError != nil {
		panic(client.ClientError)
	}
	​
	result := client.Rpc("add_them", "", map[string]int{"a": 12, "b": 3})
	if client.ClientError != nil {
		panic(client.ClientError)
	}
	​
	fmt.Println(result)
}

License

This repo is liscenced under Apache License.

Sponsors

We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.

New Sponsor

Watch this repo

GitHub

https://github.com/supabase/postgrest-go