gocql

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CQLIterator

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

CQLIterator is a wrapper around gocql.Iter.

func WrapCQLIterator

func WrapCQLIterator(iter *gocql.Iter) CQLIterator

WrapCQLIterator creates an Iterator out of *gocql.Iter.

func (CQLIterator) Close

func (i CQLIterator) Close() error

Close delegates to gocql.Iter#Close.

func (CQLIterator) Scan

func (i CQLIterator) Scan(dest ...interface{}) bool

Scan delegates to gocql.Iter#Scan.

type CQLQuery

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

CQLQuery is a wrapper around gocql.Query.

func WrapCQLQuery

func WrapCQLQuery(query *gocql.Query) CQLQuery

WrapCQLQuery creates a Query out of *gocql.Query.

func (CQLQuery) Bind

func (q CQLQuery) Bind(v ...interface{}) cassandra.Query

Bind delegates to gocql.Query#Bind and wraps the result as Query.

func (CQLQuery) Consistency

func (q CQLQuery) Consistency(level cassandra.Consistency) cassandra.Query

Consistency delegates to gocql.Query#Consistency and wraps the result as Query.

func (CQLQuery) Exec

func (q CQLQuery) Exec() error

Exec delegates to gocql.Query#Exec.

func (CQLQuery) Iter

func (q CQLQuery) Iter() cassandra.Iterator

Iter delegates to gocql.Query#Iter and wraps the result as Iterator.

func (CQLQuery) PageSize

func (q CQLQuery) PageSize(n int) cassandra.Query

PageSize delegates to gocql.Query#PageSize and wraps the result as Query.

func (CQLQuery) ScanCAS

func (q CQLQuery) ScanCAS(dest ...interface{}) (bool, error)

ScanCAS delegates to gocql.Query#ScanCAS.

func (CQLQuery) String

func (q CQLQuery) String() string

String returns string representation of this query.

type CQLSession

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

CQLSession is a wrapper around gocql.Session.

func WrapCQLSession

func WrapCQLSession(session *gocql.Session) CQLSession

WrapCQLSession creates a Session out of *gocql.Session.

func (CQLSession) Close

func (s CQLSession) Close()

Close delegates to gocql.Session#Close.

func (CQLSession) Query

func (s CQLSession) Query(stmt string, values ...interface{}) cassandra.Query

Query delegates to gocql.Session#Query and wraps the result as Query.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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