Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.