go-couchbase

Couchbase client in Go

  • 所有者: couchbase/go-couchbase
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

A smart client for couchbase in go

This is a unoffical version of a Couchbase Golang client. If you are
looking for the Offical Couchbase Golang client please see
[CB-go])[https://github.com/couchbaselabs/gocb].

This is an evolving package, but does provide a useful interface to a
couchbase server including all of the
pool/bucket discovery features, compatible key distribution with other
clients, and vbucket motion awareness so application can continue to
operate during rebalances.

It also supports view querying with source node randomization so you
don't bang on all one node to do all the work.

Install

go get github.com/couchbase/go-couchbase

Example

c, err := couchbase.Connect("http://dev-couchbase.example.com:8091/")
if err != nil {
	log.Fatalf("Error connecting:  %v", err)
}

pool, err := c.GetPool("default")
if err != nil {
	log.Fatalf("Error getting pool:  %v", err)
}

bucket, err := pool.GetBucket("default")
if err != nil {
	log.Fatalf("Error getting bucket:  %v", err)
}

bucket.Set("someKey", 0, []string{"an", "example", "list"})

主要指标

概览
名称与所有者couchbase/go-couchbase
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2012-01-19 22:52:08
推送于2025-08-25 23:31:26
最后一次提交2022-02-09 22:20:35
发布数2
最新版本名称v0.1.1 (发布于 2021-10-27 15:05:03)
第一版名称v0.1.0 (发布于 2021-04-28 15:22:18)
用户参与
星数323
关注者数25
派生数88
提交数570
已启用问题?
问题数55
打开的问题数39
拉请求数16
打开的拉请求数1
关闭的拉请求数24
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?