{"id":13495423,"url":"https://github.com/supabase-community/postgrest-go","last_synced_at":"2025-04-13T00:49:18.434Z","repository":{"id":44674347,"uuid":"370062254","full_name":"supabase-community/postgrest-go","owner":"supabase-community","description":"Isomorphic Go client for PostgREST. (Now Updating)","archived":false,"fork":false,"pushed_at":"2024-11-25T15:44:42.000Z","size":1214,"stargazers_count":192,"open_issues_count":12,"forks_count":28,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-13T00:49:12.412Z","etag":null,"topics":["database","go","golang","hacktoberfest","postgrest","rest-api","sponsors","watch"],"latest_commit_sha":null,"homepage":"https://supabase.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/supabase-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-23T13:36:28.000Z","updated_at":"2025-04-12T19:02:47.000Z","dependencies_parsed_at":"2023-12-18T08:27:18.811Z","dependency_job_id":"809b30a6-4674-43aa-bf14-0004ea09c4f4","html_url":"https://github.com/supabase-community/postgrest-go","commit_stats":{"total_commits":90,"total_committers":16,"mean_commits":5.625,"dds":0.7,"last_synced_commit":"9e475dc11b702edda8b064caf96d09f4fedf6d41"},"previous_names":["supabase/postgrest-go"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fpostgrest-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fpostgrest-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fpostgrest-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fpostgrest-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supabase-community","download_url":"https://codeload.github.com/supabase-community/postgrest-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650436,"owners_count":21139672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","go","golang","hacktoberfest","postgrest","rest-api","sponsors","watch"],"created_at":"2024-07-31T19:01:34.602Z","updated_at":"2025-04-13T00:49:18.410Z","avatar_url":"https://github.com/supabase-community.png","language":"Go","funding_links":["https://github.com/sponsors/supabase"],"categories":["Go"],"sub_categories":[],"readme":"# Postgrest GO\n\n[![golangci-lint](https://github.com/supabase-community/postgrest-go/actions/workflows/golangci.yml/badge.svg)](https://github.com/supabase-community/postgrest-go/actions/workflows/golangci.yml) [![CodeFactor](https://www.codefactor.io/repository/github/supabase-community/postgrest-go/badge/main?s=101cab44de33934fd85cadcd9a9b535a05791670)](https://www.codefactor.io/repository/github/supabase-community/postgrest-go/overview/main)\n[![Go Coverage](https://github.com/supabase-community/postgrest-go/wiki/coverage.svg)](https://raw.githack.com/wiki/supabase-community/postgrest-go/coverage.html)\n\nGolang client for [PostgREST](https://postgrest.org). The goal of this library is to make an \"ORM-like\" restful interface.\n\n## Documentation\n\nFull documentation can be found [here](https://pkg.go.dev/github.com/supabase-community/postgrest-go).\n\n### Quick start\n\nInstall\n\n```bash\ngo get github.com/supabase-community/postgrest-go\n```\n\nUsage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/supabase-community/postgrest-go\"\n)\n\nfunc main() {\n\tclient := postgrest.NewClient(\"http://localhost:3000/rest/v1\", \"\", nil)\n\tif client.ClientError != nil {\n\t\tpanic(client.ClientError)\n\t}\n\n\tresult := client.Rpc(\"add_them\", \"\", map[string]int{\"a\": 12, \"b\": 3})\n\tif client.ClientError != nil {\n\t\tpanic(client.ClientError)\n\t}\n\n\tfmt.Println(result)\n}\n```\n\n## Testing\n\nSome tests are implemented to run against mocked Postgrest endpoints. Optionally, tests can be run against an actual Postgrest instance by setting a `POSTGREST_URL` environment variable to the fully-qualified URL to a Postgrest instance, and, optionally, an `API_KEY` environment variable (if, for example, testing against a local Supabase instance).\n\nA [script](test/seed.sql) is included in the test directory that can be used to seed the test database.\n\nTo run all tests:\n\n```bash\ngo test ./...\n```\n## Package made possible through the efforts of: \n\u003ca href=\"https://github.com/supabase-community/postgrest-go/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=supabase-community/postgrest-go\" /\u003e\n\u003c/a\u003e\n\nMade with [contrib.rocks](https://contrib.rocks).\n\n## License\n\nThis repo is licensed under the [Apache License](LICENSE).\n\n## Sponsors\n\nWe 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.\n\n[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase-community%2Fpostgrest-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupabase-community%2Fpostgrest-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase-community%2Fpostgrest-go/lists"}