package
0.1.1
Repository: https://github.com/gnolang/gno.git
Documentation: pkg.go.dev

# README

DB

Database abstractions to be used in applications. These abstractions are not only meant to be used in applications built on Tendermint, but can be used in a variety of applications.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

BackendList returns a list of available db backends.
InternalRegisterDBCreator is used by the init functions of imported databases to register their own dbCreators.
See DB interface documentation for more information.
IteratePrefix is a convenience function for iterating over a key domain restricted by prefix.
NewDB creates a new database of type backend with the given name.
NewImmutableDB wraps a db to make it immutable.
NewPrefixDB lets you namespace multiple DBs within a single DB.

# Constants

BoltDBBackend represents bolt (uses etcd's fork of bolt - go.etcd.io/bbolt) - EXPERIMENTAL - may be faster is some use-cases (random reads - indexer).
GoLevelDBBackend represents goleveldb (github.com/syndtr/goleveldb - most popular implementation) - stable.
MemDBBackend represents in-memory key value store, which is mostly used for testing.

# Structs

No description provided by the author
No description provided by the author

# Interfaces

Batch Close must be called when the program no longer needs the object.
DBs are goroutine safe.
Usage: var itr Iterator = ..
No description provided by the author

# Type aliases

No description provided by the author