Help us shape the future of Go! Take the 2026 Go Developer Survey

boltdbutils

package module
v0.0.0-...-ab1c695 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

README

boltdbutils

Boltdbutils is a collection of utilities to create a bucket indexed by many keys.

Documentation

Index

Constants

View Source
const ErrInvBucket = "invalid bucket"
View Source
const ErrKeyNotFound = "key not found"

Variables

This section is empty.

Functions

func Del

func Del(tx *bolt.Tx, bucket []byte, keys [][]byte) error

func Get

func Get(tx *bolt.Tx, bucket []byte, keys [][]byte) ([]byte, error)

func Put

func Put(tx *bolt.Tx, bucket []byte, keys [][]byte, data []byte) error

Types

type Cursor

type Cursor struct {
	Tx      *bolt.Tx
	Bucket  []byte
	NumKeys int
	Reverse bool
	// contains filtered or unexported fields
}

func (*Cursor) Commit

func (c *Cursor) Commit() error

func (*Cursor) Err

func (c *Cursor) Err() error

func (*Cursor) First

func (c *Cursor) First() (kout [][]byte, vout []byte)

func (*Cursor) GetTx

func (c *Cursor) GetTx() *bolt.Tx

func (*Cursor) Init

func (c *Cursor) Init(keys ...[]byte) error

func (*Cursor) Last

func (c *Cursor) Last() (kout [][]byte, vout []byte)

func (*Cursor) Next

func (c *Cursor) Next() (kout [][]byte, vout []byte)

func (*Cursor) Prev

func (c *Cursor) Prev() (kout [][]byte, vout []byte)

func (*Cursor) Rollback

func (c *Cursor) Rollback() error

func (*Cursor) Seek

func (c *Cursor) Seek(keys ...[]byte) (kout [][]byte, vout []byte)

func (*Cursor) Skip

func (c *Cursor) Skip(count uint64) (k [][]byte, v []byte)

Jump to

Keyboard shortcuts

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