cockroachdb

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger logger.Logger) state.Store

New creates a new instance of CockroachDB state store.

Types

type CockroachDB

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

CockroachDB state store.

func (*CockroachDB) BulkDelete

func (c *CockroachDB) BulkDelete(ctx context.Context, req []state.DeleteRequest) error

BulkDelete removes multiple entries from the store.

func (*CockroachDB) BulkGet

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

BulkGet performs a bulks get operations.

func (*CockroachDB) BulkSet

func (c *CockroachDB) BulkSet(ctx context.Context, 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(ctx context.Context, 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) GetComponentMetadata added in v1.10.1

func (c *CockroachDB) GetComponentMetadata() map[string]string

func (*CockroachDB) Init

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

Init initializes the CockroachDB state store.

func (*CockroachDB) Multi

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(ctx context.Context, 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