{"id":28948916,"url":"https://github.com/xataio/xata-go","last_synced_at":"2026-03-05T15:33:01.572Z","repository":{"id":210670438,"uuid":"697743814","full_name":"xataio/xata-go","owner":"xataio","description":"Go SDK for xata.io","archived":false,"fork":false,"pushed_at":"2024-02-22T07:45:30.000Z","size":457,"stargazers_count":9,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-23T11:07:25.981Z","etag":null,"topics":["database","full-text-search","go","hacktoberfest","openai","postgres","sdk","sdk-go","vector-search","xata","xata-io"],"latest_commit_sha":null,"homepage":"","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/xataio.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}},"created_at":"2023-09-28T11:42:30.000Z","updated_at":"2024-12-05T21:57:02.000Z","dependencies_parsed_at":"2024-01-19T13:38:18.091Z","dependency_job_id":null,"html_url":"https://github.com/xataio/xata-go","commit_stats":null,"previous_names":["xataio/xata-go"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/xataio/xata-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xataio%2Fxata-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xataio%2Fxata-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xataio%2Fxata-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xataio%2Fxata-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xataio","download_url":"https://codeload.github.com/xataio/xata-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xataio%2Fxata-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30133265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T14:41:47.141Z","status":"ssl_error","status_checked_at":"2026-03-05T14:41:21.567Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","full-text-search","go","hacktoberfest","openai","postgres","sdk","sdk-go","vector-search","xata","xata-io"],"created_at":"2025-06-23T11:07:22.258Z","updated_at":"2026-03-05T15:33:01.565Z","avatar_url":"https://github.com/xataio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./internal/assets/logo_dark.svg\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./internal/assets/logo_light.svg\"\u003e\n    \u003cimg width=\"400\" alt=\"Xata\" src=\"./internal/assets/logo_dark.svg\"\u003e\n  \u003c/picture\u003e\n\u003c/p\u003e\n\n# Golang SDK for Xata\n\nSimple Golang client for xata.io databases.\n\nXata is a Serverless Database that is as easy to use as a spreadsheet, has the\ndata integrity of PostgresSQL, and the search and analytics functionality of\nElasticsearch.\n\nTo install, run:\n\nAssuming that the API key is set as an env var: `XATA_API_KEY=api-key-value`\n```Go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\n\t\"github.com/xataio/xata-go/xata\"\n)\n\nfunc main() {\n\tworkspaceCli, err := xata.NewWorkspacesClient() \n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tresp, err := workspaceCli.List(context.Background())\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Printf(\"%#v\\n\", *resp.Workspaces[0])\n\t// Output: api.GetWorkspacesListResponseWorkspacesItem{ID:\"Alice-s-workspace-abcd\", Name:\"Alice's workspace\", Slug:\"Alice-s-workspace\", Role:0x1}\n\n\titem := *resp.Workspaces[0]\n\tfmt.Printf(\"%s\\n\", item.Role.String())\n\t// Output: owner\n}\n```\n\nThe API key can also be provided as a parameter to the client constructor:\n```Go\nworkspaceCli, err := xata.NewWorkspacesClient(xata.WithAPIKey(\"my-api-key\"))\n```\n\nTo learn more about Xata, visit [xata.io](https://xata.io).\n\n- API Reference: https://xata.io/docs/rest-api/contexts#openapi-specifications\n\n## Development\n\n### Requirements\n\n- Go 1.21.0+\n- Docker\n- Make\n- [fern](https://docs.buildwithfern.com/overview/cli/cli) (only if auto code generation is needed)\n\n### Tests\n\n```shell\nmake test\n```\n\n```shell\nmake integration-test\n```\n\n### Linting\n\n```shell\nmake lint\n```\n\n### Codegen\n\nPlease consult the pages about [code generation](code-generation.md) and [how to add a new client](add-new-feature.md) to learn more about the architecture of the SDK.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxataio%2Fxata-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxataio%2Fxata-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxataio%2Fxata-go/lists"}