Skip to content

InfiniDB is a fully native and persistent key/value store in Go.

Notifications You must be signed in to change notification settings

Zaire404/InfiniDB

Repository files navigation

InfiniDB

Go Reference Go Report Card

InfiniDB is a fully native and persistent key/value store in Go.

Table of Contents

Getting Started

Installing

To start using InfiniDB, install Go and run go get:

$ go get github.com/Zaire404/InfiniDB

Opening a database

To open your database, simply use the infinidb.Open() function:

package main

import (
	"github.com/Zaire404/InfiniDB"
)

func main() {
	opt := infinidb.DefaultOptions()
	db := infinidb.Open(&opt)
	defer db.Close()

    ...
}

Getting a value

To get a value from the database, use the Get() function:

entry, err := db.Get([]byte("key"))
...

Setting a value

To set a value in the database, use the Set() function:

import "github.com/Zaire404/InfiniDB/util"
err := db.Set(&util.Entry{Key: []byte("key"), ValueStruct: util.ValueStruct{Value: []byte("value")}})
...

Deleting a value

To delete a value from the database, use the Del() function:

err := db.Del([]byte("key"))
..

Comparison with other key/value stores

About

InfiniDB is a fully native and persistent key/value store in Go.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •