sbkv

package module
v0.0.0-...-0e92c4a Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 15 Imported by: 0

README

SBKV: A Simple Bitcask Key-Value DB

A simple implement for bitcask written in Go

Another project of mine got a requirement to use a lightweight log structured database. So this SBKV totally meet my personal requirement in current stage.

But this project is still under developing, and not complete yet. Will implement full bitcask feature in future.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNoSuchDatafile no such data file by given file id
	ErrNoSuchDatafile = errors.New("no such data file by given file id")
	//ErrNoSuchRecord no such data record by given key
	ErrNoSuchRecord = errors.New("no such data record")
)
View Source
var (
	ErrReachedThreshold = errors.New("reached datafile threshold")
)

Functions

This section is empty.

Types

type DataBase

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

func Open

func Open(dir string) (*DataBase, error)

func (*DataBase) Close

func (db *DataBase) Close() error

func (*DataBase) Delete

func (db *DataBase) Delete(key interface{}) error

func (*DataBase) Get

func (db *DataBase) Get(key interface{}, value interface{}) error

func (*DataBase) Put

func (db *DataBase) Put(key interface{}, value interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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