ecqltest

package
v0.0.0-...-8ae2b35 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIter

func NewIter() ecql.Iter

func NewSession

func NewSession() ecql.Session

func NewStatement

func NewStatement() ecql.Statement

Types

type Batch

type Batch struct {
	mock.Mock
}

Batch is a mock implementation of the Batch interface

func (*Batch) Add

func (m *Batch) Add(s ...ecql.Statement) ecql.Batch

Add is mocks a call to this method.

func (*Batch) Apply

func (m *Batch) Apply() error

Apply is mocks a call to this method.

func (*Batch) ApplyCAS

func (m *Batch) ApplyCAS() (bool, error)

ApplyCAS is mocks a call to this method.

type Iter

type Iter struct {
	mock.Mock
}

func (*Iter) Close

func (m *Iter) Close() error

func (*Iter) TypeScan

func (m *Iter) TypeScan(i interface{}) bool

type Session

type Session struct {
	mock.Mock
}

func (*Session) Batch

func (m *Session) Batch() ecql.Batch

func (*Session) Count

func (m *Session) Count(i interface{}) ecql.Statement

func (*Session) Del

func (m *Session) Del(i interface{}) error

func (*Session) Delete

func (m *Session) Delete(i interface{}) ecql.Statement

func (*Session) Exists

func (m *Session) Exists(i interface{}) (bool, error)

func (*Session) Get

func (m *Session) Get(i interface{}, keys ...interface{}) error

func (*Session) Insert

func (m *Session) Insert(i interface{}) ecql.Statement

func (*Session) Query

func (m *Session) Query(stmt string, args ...interface{}) *gocql.Query

func (*Session) Select

func (m *Session) Select(i interface{}) ecql.Statement

func (*Session) Set

func (m *Session) Set(i interface{}) error

func (*Session) Update

func (m *Session) Update(i interface{}) ecql.Statement

type Statement

type Statement struct {
	mock.Mock
}

func (*Statement) AllowFiltering

func (m *Statement) AllowFiltering() ecql.Statement

func (*Statement) Bind

func (m *Statement) Bind(i interface{}) ecql.Statement

func (*Statement) BuildQuery

func (m *Statement) BuildQuery() (string, []interface{})

func (*Statement) Columns

func (m *Statement) Columns(columns ...string) ecql.Statement

func (*Statement) Do

func (m *Statement) Do(cmd ecql.Command) ecql.Statement

func (*Statement) Exec

func (m *Statement) Exec() error

func (*Statement) From

func (m *Statement) From(table string) ecql.Statement

func (*Statement) FromType

func (m *Statement) FromType(i interface{}) ecql.Statement

func (*Statement) IfExists

func (m *Statement) IfExists() ecql.Statement

func (*Statement) IfNotExists

func (m *Statement) IfNotExists() ecql.Statement

func (*Statement) Iter

func (m *Statement) Iter() ecql.Iter

func (*Statement) Limit

func (m *Statement) Limit(n int) ecql.Statement

func (*Statement) Map

func (m *Statement) Map(i interface{}) ecql.Statement

func (*Statement) OrderBy

func (m *Statement) OrderBy(order ...ecql.OrderBy) ecql.Statement

func (*Statement) Scan

func (m *Statement) Scan(i ...interface{}) error

func (*Statement) Set

func (m *Statement) Set(column string, value interface{}) ecql.Statement

func (*Statement) TTL

func (m *Statement) TTL(seconds int) ecql.Statement

func (*Statement) Timestamp

func (m *Statement) Timestamp(microseconds int64) ecql.Statement

func (*Statement) TypeScan

func (m *Statement) TypeScan() error

func (*Statement) Where

func (m *Statement) Where(cond ...ecql.Condition) ecql.Statement

Jump to

Keyboard shortcuts

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