keyvaluedatabase

package
v0.0.0-...-f68bede Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPebbleReadWriteTransactionAlreadyOpen = errors.New("a read-write transaction is already open")

Functions

func NewPebbleKeyValueDatabaseFactory

func NewPebbleKeyValueDatabaseFactory(baseDir string) ocr3_1types.KeyValueDatabaseFactory

NewPebbleKeyValueDatabaseFactory produces a ocr3_1types.KeyValueDatabaseFactory that creates Pebble databases under the directory indicated by baseDir. The directory must exist and be writeable. NewKeyValueDatabase may fail if not. The factory requires exclusive control of the directory: external changes are forbidden.

func OpenPebbleKeyValueDatabaseReadOnlyForTooling

func OpenPebbleKeyValueDatabaseReadOnlyForTooling(dbPath string) (keyValueDatabaseReadOnlyForTooling, error)

OpenPebbleKeyValueDatabaseReadOnlyForTooling opens a Pebble key-value database at the given path directly, without the factory's <configDigest>.db naming convention.

It is intended only for use by libocr internal tooling, and is not meant to be used elsewhere in production code. It may be removed or changed without notice in the future.

Calls to read-write related methods of this database will behave unpredictably. Returns ocr3_1types.ErrKeyValueDatabaseDoesNotExist if the database does not exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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