db

package
v0.0.0-...-5c5a2f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(dirname string) (*DB, error)

func (*DB) Delete

func (db *DB) Delete(key string)

func (*DB) Flush

func (db *DB) Flush() error

Flush saves the memtable to disk and clear it

func (*DB) Get

func (db *DB) Get(key string) string

func (*DB) LoadSSTables

func (db *DB) LoadSSTables() error

func (*DB) MergeAll

func (db *DB) MergeAll() error

func (*DB) Set

func (db *DB) Set(key, value string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL