recipes

package
Version: v0.0.0-...-50cb774 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2016 License: BSD-2-Clause-Views Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRUD

type CRUD struct {
	gocqltable.TableInterface
}

func (CRUD) Delete

func (t CRUD) Delete(row interface{}) error

func (CRUD) Get

func (t CRUD) Get(ids ...interface{}) (interface{}, error)

func (CRUD) Insert

func (t CRUD) Insert(row interface{}) error

func (CRUD) InsertWithTTL

func (t CRUD) InsertWithTTL(row interface{}, ttl *time.Time) error

func (CRUD) List

func (t CRUD) List(ids ...interface{}) (interface{}, error)

func (CRUD) Range

func (t CRUD) Range(ids ...interface{}) RangeInterface

func (CRUD) Update

func (t CRUD) Update(row interface{}) error

type Range

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

func (Range) EqualTo

func (r Range) EqualTo(rangeKey string, value interface{}) RangeInterface

func (Range) Fetch

func (r Range) Fetch() (interface{}, error)

func (Range) LessThan

func (r Range) LessThan(rangeKey string, value interface{}) RangeInterface

func (Range) LessThanOrEqual

func (r Range) LessThanOrEqual(rangeKey string, value interface{}) RangeInterface

func (Range) Limit

func (r Range) Limit(l int) RangeInterface

func (Range) MoreThan

func (r Range) MoreThan(rangeKey string, value interface{}) RangeInterface

func (Range) MoreThanOrEqual

func (r Range) MoreThanOrEqual(rangeKey string, value interface{}) RangeInterface

func (Range) OrderBy

func (r Range) OrderBy(fieldAndDirection string) RangeInterface

func (Range) Select

func (r Range) Select(s []string) RangeInterface

func (Range) WhereIn

func (r Range) WhereIn(m map[string][]string) RangeInterface

type RangeInterface

type RangeInterface interface {
	LessThan(rangeKey string, value interface{}) RangeInterface
	LessThanOrEqual(rangeKey string, value interface{}) RangeInterface
	MoreThan(rangeKey string, value interface{}) RangeInterface
	MoreThanOrEqual(rangeKey string, value interface{}) RangeInterface
	EqualTo(rangeKey string, value interface{}) RangeInterface
	OrderBy(fieldAndDirection string) RangeInterface
	Limit(l int) RangeInterface
	Select(s []string) RangeInterface
	WhereIn(m map[string][]string) RangeInterface
	Fetch() (interface{}, error)
}

Source Files

Jump to

Keyboard shortcuts

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