tx

package
v0.22.20 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ViewKey added in v0.22.19

func ViewKey(field string, shard uint64) string

func ViewKeyPrefix added in v0.22.19

func ViewKeyPrefix(field string) string

Types

type Tx

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

func New added in v0.22.19

func New(tx *rbf.Tx, shard uint64, tr *tr.Read) *Tx

func (*Tx) Blob added in v0.22.19

func (tx *Tx) Blob(field string, id uint64) []byte

func (*Tx) Cursor

func (tx *Tx) Cursor(field string, f func(c *rbf.Cursor, tx *Tx) error) error

func (*Tx) Find added in v0.22.19

func (tx *Tx) Find(field string, key []byte) (uint64, bool)

func (*Tx) Get added in v0.22.19

func (tx *Tx) Get(field string) (*rbf.Cursor, error)

func (*Tx) Key

func (tx *Tx) Key(field string, id uint64) []byte

func (*Tx) Keys added in v0.22.19

func (tx *Tx) Keys(field string, id []uint64, f func(value []byte))

func (*Tx) Search added in v0.22.19

func (tx *Tx) Search(field string, a vellum.Automaton, start []byte, end []byte, match func(key []byte, value uint64) error) error

func (*Tx) SearchRe added in v0.22.19

func (tx *Tx) SearchRe(field, like string, start []byte, end []byte, match func(key []byte, value uint64) error) error

func (*Tx) Shard

func (tx *Tx) Shard() uint64

func (*Tx) Views added in v0.22.19

func (tx *Tx) Views() []string

Jump to

Keyboard shortcuts

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