boltdb

package
v5.0.0-...-0681bf2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BleveQueryToJSONPath

func BleveQueryToJSONPath(queryString string, rootSelector string, insensitive bool, fieldTransformer func(string) string, computeLength bool) (gval.Evaluable, string, error)

BleveQueryToJSONPath transforms a Blevesearch query string to a JSONPath query

func OpenDiscard

func OpenDiscard(ctx context.Context, uu string) (storage.Storage, error)

func OpenPool

func OpenPool(ctx context.Context, uu string) (storage.Storage, error)

Types

type DB

type DB interface {
	Batch(fn func(*bbolt.Tx) error) error
	Begin(writable bool) (*bbolt.Tx, error)
	Compact(ctx context.Context, opts map[string]interface{}) (old uint64, new uint64, err error)
	Close(ctx context.Context) error
	CloseAndDrop(ctx context.Context) error
	GoString() string
	Info() *bbolt.Info
	IsReadOnly() bool
	Path() string
	Stats() bbolt.Stats
	String() string
	Sync() error
	Update(fn func(*bbolt.Tx) error) error
	View(fn func(*bbolt.Tx) error) error
}

Jump to

Keyboard shortcuts

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