Documentation
¶
Index ¶
- Constants
- Variables
- func NewBoltDB(path string) (*bbolt.DB, error)
- func NewPebbleDB(directory string, reportCompactionRunning func(running bool), ...) (*pebbleDB.DB, error)
- func NewRocksDB(path string) (*rocksdb.RocksDB, error)
- func StoreWithDefaultSettings(directory string, createDatabaseIfNotExists bool, dbEngine hivedb.Engine, ...) (kvstore.KVStore, error)
Constants ¶
View Source
const (
EngineBolt = "bolt"
)
Variables ¶
View Source
var ( AllowedEnginesDefault = []hivedb.Engine{ hivedb.EngineAuto, hivedb.EnginePebble, hivedb.EngineRocksDB, EngineBolt, } AllowedEnginesStorage = []hivedb.Engine{ hivedb.EnginePebble, hivedb.EngineRocksDB, EngineBolt, } AllowedEnginesStorageAuto = append(AllowedEnginesStorage, hivedb.EngineAuto) )
Functions ¶
func NewPebbleDB ¶
func NewPebbleDB(directory string, reportCompactionRunning func(running bool), enableFilter bool) (*pebbleDB.DB, error)
NewPebbleDB creates a new pebble DB instance.
func NewRocksDB ¶
NewRocksDB creates a new RocksDB instance.
func StoreWithDefaultSettings ¶
func StoreWithDefaultSettings(directory string, createDatabaseIfNotExists bool, dbEngine hivedb.Engine, boltFileName string, allowedEngines ...hivedb.Engine) (kvstore.KVStore, error)
StoreWithDefaultSettings returns a kvstore with default settings. It also checks if the database engine is correct.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.