{"id":26913767,"url":"https://github.com/couchbase/gocbcolumnar","last_synced_at":"2025-10-09T19:07:40.349Z","repository":{"id":275921840,"uuid":"809826432","full_name":"couchbase/gocbcolumnar","owner":"couchbase","description":"Couchbase Columnar Go SDK","archived":false,"fork":false,"pushed_at":"2025-03-10T15:03:57.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-09T19:07:39.798Z","etag":null,"topics":[],"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/couchbase.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-03T14:19:24.000Z","updated_at":"2025-03-10T15:01:45.000Z","dependencies_parsed_at":"2025-02-05T10:23:10.161Z","dependency_job_id":"aad2dae8-1d13-4edb-9833-9ee31fc3e76b","html_url":"https://github.com/couchbase/gocbcolumnar","commit_stats":null,"previous_names":["chvck/gocb-columnar","couchbaselabs/gocbcolumnar","couchbase/gocbcolumnar"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/couchbase/gocbcolumnar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fgocbcolumnar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fgocbcolumnar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fgocbcolumnar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fgocbcolumnar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/couchbase","download_url":"https://codeload.github.com/couchbase/gocbcolumnar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fgocbcolumnar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001982,"owners_count":26083243,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-04-01T16:44:55.931Z","updated_at":"2025-10-09T19:07:40.319Z","avatar_url":"https://github.com/couchbase.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Couchbase Go Columnar Client\n\nGo client for [Couchbase](https://couchbase.com) Columnar\n\n## Useful Links\n### Documentation\nYou can explore our API reference through godoc at [https://pkg.go.dev/github.com/couchbase/gocbcolumnar](https://pkg.go.dev/github.com/couchbase/gocbcolumnar).\n\nYou can also find documentation for the Go Columnar SDK on the [official Couchbase docs](https://docs.couchbase.com/go-columnar-sdk/current/hello-world/overview.html).\n\n## Installing\n\nTo install the latest stable version, run:\n```bash\ngo get github.com/couchbase/gocbcolumnar@latest\n```\n\nTo install the latest developer version, run:\n```bash\ngo get github.com/couchbase/gocbcolumnar@main\n```\n\n## Getting Started\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/couchbaselabs/gocbcolumnar\"\n)\n\nfunc main() {\n\tconst (\n\t\tconnStr  = \"couchbases://...\"\n\t\tusername = \"...\"\n\t\tpassword = \"...\"\n\t)\n\t\n\tcluster, err := cbcolumnar.NewCluster(\n\t\tconnStr,\n\t\tcbcolumnar.NewCredential(username, password),\n\t\t// The third parameter is optional.\n\t\t// This example sets the default server query timeout to 3 minutes,\n\t\t// that is the timeout value sent to the query server.\n\t\tcbcolumnar.NewClusterOptions().SetTimeoutOptions(\n\t\t\tcbcolumnar.NewTimeoutOptions().SetQueryTimeout(3*time.Minute),\n\t\t),\n\t)\n\thandleErr(err)\n\n\t// We create a new context with a timeout of 2 minutes.\n\t// This context will apply timeout/cancellation on the client side.\n\tctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)\n\tdefer cancel()\n\n\tprintRows := func(result *cbcolumnar.QueryResult) {\n\t\tfor row := result.NextRow(); row != nil; row = result.NextRow() {\n\t\t\tvar content map[string]interface{}\n\n\t\t\terr = row.ContentAs(\u0026content)\n\t\t\thandleErr(err)\n\n\t\t\tfmt.Printf(\"Got row content: %v\", content)\n\t\t}\n\t}\n\n\t// Execute a query and process rows as they arrive from server.\n\t// Results are always streamed from the server.\n\tresult, err := cluster.ExecuteQuery(ctx, \"select 1\")\n\thandleErr(err)\n\n\tprintRows(result)\n\n\t// Execute a query with positional arguments.\n\tresult, err = cluster.ExecuteQuery(\n\t\tctx,\n\t\t\"select ?=1\",\n\t\tcbcolumnar.NewQueryOptions().SetPositionalParameters([]interface{}{1}),\n\t)\n\thandleErr(err)\n\n\tprintRows(result)\n\n\t// Execute a query with named arguments.\n\tresult, err = cluster.ExecuteQuery(\n\t\tctx,\n\t\t\"select $foo=1\",\n\t\tcbcolumnar.NewQueryOptions().SetNamedParameters(map[string]interface{}{\"foo\": 1}),\n\t)\n\thandleErr(err)\n\n\tprintRows(result)\n\n\terr = cluster.Close()\n\thandleErr(err)\n}\n\nfunc handleErr(err error) {\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n\n```\n\n## Testing\n\nYou can run tests in the usual Go way:\n\n`go test -race ./... --connstr couchbases://... --username ... --password ... --database ... --scope ...`\n\nWhich will execute tests against the specified Columnar instance.\nSee the `testmain_test.go` file for more information on command line arguments.\n\n## Linting\n\nLinting is performed used `golangci-lint`.\nTo run:\n\n`golangci-lint run`\n\n## License\nCopyright 2025 Couchbase Inc.\n\nLicensed under the Apache License, Version 2.0.\n\nSee\n[LICENSE](https://github.com/couchbase/gocbcolumnar/blob/main/LICENSE)\nfor further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase%2Fgocbcolumnar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcouchbase%2Fgocbcolumnar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase%2Fgocbcolumnar/lists"}