cockroachdb

package
v1.7.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CockroachDB

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

CockroachDB state store.

func New

func New(logger logger.Logger) *CockroachDB

New creates a new instance of CockroachDB state store.

func (*CockroachDB) BulkDelete

func (c *CockroachDB) BulkDelete(req []state.DeleteRequest) error

BulkDelete removes multiple entries from the store.

func (*CockroachDB) BulkGet

func (c *CockroachDB) BulkGet(req []state.GetRequest) (bool, []state.BulkGetResponse, error)

BulkGet performs a bulks get operations.

func (*CockroachDB) BulkSet

func (c *CockroachDB) BulkSet(req []state.SetRequest) error

BulkSet adds/updates multiple entities on store.

func (*CockroachDB) Close

func (c *CockroachDB) Close() error

Close implements io.Closer.

func (*CockroachDB) Delete

func (c *CockroachDB) Delete(req *state.DeleteRequest) error

Delete removes an entity from the store.

func (*CockroachDB) Features

func (c *CockroachDB) Features() []state.Feature

Features returns the features available in this state store.

func (*CockroachDB) Get

Get returns an entity from store.

func (*CockroachDB) Init

func (c *CockroachDB) Init(metadata state.Metadata) error

Init initializes the CockroachDB state store.

func (*CockroachDB) Multi

func (c *CockroachDB) Multi(request *state.TransactionalStateRequest) error

Multi handles multiple transactions. Implements TransactionalStore.

func (*CockroachDB) Ping

func (c *CockroachDB) Ping() error

Ping checks if database is available.

func (*CockroachDB) Query

Query executes a query against store.

func (*CockroachDB) Set

func (c *CockroachDB) Set(req *state.SetRequest) error

Set adds/updates an entity on store.

type Query

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

func (*Query) Finalize

func (q *Query) Finalize(filters string, storeQuery *query.Query) error

func (*Query) VisitAND

func (q *Query) VisitAND(filter *query.AND) (string, error)

func (*Query) VisitEQ

func (q *Query) VisitEQ(filter *query.EQ) (string, error)

func (*Query) VisitIN

func (q *Query) VisitIN(filter *query.IN) (string, error)

func (*Query) VisitOR

func (q *Query) VisitOR(filter *query.OR) (string, error)

Jump to

Keyboard shortcuts

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