couchbase

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2014 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

View Source
const (
	PRIMARY_INDEX = "#primary"
	ALLDOCS_INDEX = "#alldocs"
)
View Source
const NETWORK_CHANNEL = "NETWORK"
View Source
const TYPE_ARRAY = 192
View Source
const TYPE_BOOLEAN = 96
View Source
const TYPE_NULL = 64
View Source
const TYPE_NUMBER = 128
View Source
const TYPE_OBJECT = 224
View Source
const TYPE_STRING = 160

Variables

View Source
var MAX_ID = cb.DocID(strings.Repeat(string([]byte{0xff}), 251))
View Source
var MIN_ID = cb.DocID("")

Functions

func NewSite

func NewSite(url string) (catalog.Site, query.Error)

NewSite creates a new Couchbase site for the given url.

func ViewTotalRows added in v0.6.0

func ViewTotalRows(bucket *cb.Bucket, ddoc string, view string, options map[string]interface{}) (int64, query.Error)

func WalkViewInBatches

func WalkViewInBatches(result chan cb.ViewRow, errs query.ErrorChannel, bucket *cb.Bucket,
	ddoc string, view string, options map[string]interface{}, batchSize int64, limit int64)

Types

type JsStatement

type JsStatement struct {
	// contains filtered or unexported fields
}

AST to JS conversion

func NewWalker

func NewWalker() *JsStatement

func (*JsStatement) JS

func (this *JsStatement) JS() string

func (*JsStatement) Visit

func (this *JsStatement) Visit(e ast.Expression) (ast.Expression, error)

inorder traversal of the AST to get JS expression out of it

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL