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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?