Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Options)
Option is one of the Options.
func BlockCacheSize ¶
BlockCacheSize sets the size in bytes of the LRU cache for grocksdb blocks.
func IncreaseParallelism ¶
IncreaseParallelism sets opts.IncreaseParallelism(threadCount).
func ReadFillCache ¶
ReadFillCache sets the opts.SetFillCache ReadOption.
func UseCompression ¶
UseCompression sets opts.SetCompression(grocksdb.ZSTDCompression).
func WriteDisableWAL ¶
WriteDisableWAL sets the opts.DisableWAL WriteOption.
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options holds the options used to instantiate the underlying grocksdb.DB.
type RocksDB ¶
type RocksDB struct { }
RocksDB holds the underlying grocksdb.DB instance and options.
func OpenDBReadOnly ¶
OpenDBReadOnly opens a new RocksDB instance in read-only mode.
func (*RocksDB) GetIntProperty ¶
GetIntProperty similar to "GetProperty", but only works for a subset of properties whose return value is an integer. Return the value by integer.
func (*RocksDB) GetProperty ¶
GetProperty returns the value of a database property.