Versions in this module Expand all Collapse all v0 v0.7.0 Dec 8, 2016 Changes in this version + type BlockBasedTableOptions struct + func NewDefaultBlockBasedTableOptions() *BlockBasedTableOptions + func NewNativeBlockBasedTableOptions(c *C.rdb_block_based_table_options_t) *BlockBasedTableOptions + func (opts *BlockBasedTableOptions) Destroy() + func (opts *BlockBasedTableOptions) SetBlockCache(cache *Cache) + func (opts *BlockBasedTableOptions) SetBlockCacheCompressed(cache *Cache) + func (opts *BlockBasedTableOptions) SetBlockSize(blockSize int) + func (opts *BlockBasedTableOptions) SetFilterPolicy(fp FilterPolicy) + func (opts *BlockBasedTableOptions) SetNoBlockCache(value bool) + func (opts *BlockBasedTableOptions) SetWholeKeyFiltering(value bool) + type Cache struct + func NewLRUCache(capacity int) *Cache + func NewNativeCache(c *C.rdb_cache_t) *Cache + func (c *Cache) Destroy() + type Checkpoint struct + func (s *Checkpoint) Destroy() + func (s *Checkpoint) Save(checkpointDir string) error + type DB struct + func OpenDb(opts *Options, name string) (*DB, error) + func OpenDbForReadOnly(opts *Options, name string, errorIfLogFileExist bool) (*DB, error) + func (db *DB) Close() + func (db *DB) Delete(opts *WriteOptions, key []byte) error + func (db *DB) Get(opts *ReadOptions, key []byte) (*Slice, error) + func (db *DB) GetBytes(opts *ReadOptions, key []byte) ([]byte, error) + func (db *DB) GetProperty(propName string) string + func (db *DB) GetStats() string + func (db *DB) NewCheckpoint() (*Checkpoint, error) + func (db *DB) NewIterator(opts *ReadOptions) *Iterator + func (db *DB) NewSnapshot() *Snapshot + func (db *DB) Put(opts *WriteOptions, key, value []byte) error + func (db *DB) Write(opts *WriteOptions, batch *WriteBatch) error + type FilterPolicy interface + CreateFilter func(keys [][]byte) []byte + KeyMayMatch func(key []byte, filter []byte) bool + Name func() string + func NewBloomFilter(bitsPerKey int) FilterPolicy + func NewNativeFilterPolicy(c *C.rdb_filterpolicy_t) FilterPolicy + type Iterator struct + func NewNativeIterator(c unsafe.Pointer) *Iterator + func (iter *Iterator) Close() + func (iter *Iterator) Err() error + func (iter *Iterator) Key() *Slice + func (iter *Iterator) Next() + func (iter *Iterator) Prev() + func (iter *Iterator) Seek(key []byte) + func (iter *Iterator) SeekToFirst() + func (iter *Iterator) SeekToLast() + func (iter *Iterator) Valid() bool + func (iter *Iterator) ValidForPrefix(prefix []byte) bool + func (iter *Iterator) Value() *Slice + type Options struct + func NewDefaultOptions() *Options + func NewNativeOptions(c *C.rdb_options_t) *Options + func (opts *Options) SetBlockBasedTableFactory(value *BlockBasedTableOptions) + func (opts *Options) SetCreateIfMissing(value bool) + type Range struct + Limit []byte + Start []byte + type ReadOptions struct + func NewDefaultReadOptions() *ReadOptions + func NewNativeReadOptions(c *C.rdb_readoptions_t) *ReadOptions + func (opts *ReadOptions) Destroy() + func (opts *ReadOptions) SetFillCache(value bool) + func (opts *ReadOptions) SetSnapshot(snapshot *Snapshot) + type Slice struct + func NewSlice(data *C.char, size C.size_t) *Slice + func (s *Slice) Data() []byte + func (s *Slice) Free() + func (s *Slice) Size() int + type Snapshot struct + func NewNativeSnapshot(c *C.rdb_snapshot_t, cDb *C.rdb_t) *Snapshot + func (s *Snapshot) Release() + type WriteBatch struct + func NewNativeWriteBatch(c *C.rdb_writebatch_t) *WriteBatch + func NewWriteBatch() *WriteBatch + func WriteBatchFrom(data []byte) *WriteBatch + func (wb *WriteBatch) Clear() + func (wb *WriteBatch) Count() int + func (wb *WriteBatch) Delete(key []byte) + func (wb *WriteBatch) Destroy() + func (wb *WriteBatch) Put(key, value []byte) + type WriteOptions struct + func NewDefaultWriteOptions() *WriteOptions + func NewNativeWriteOptions(c *C.rdb_writeoptions_t) *WriteOptions + func (opts *WriteOptions) Destroy() + func (opts *WriteOptions) SetSync(value bool)