dalgo2buntdb

package module
v0.7.22 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 8 Imported by: 1

README

Go package: github.com/dal-go/dalgo2buntdb

Lint, Vet, Build, Test Go Report Card GoDoc

Bridge to BuntDB API for github.com/dal-go/dalgo interface.

What is BuntDB?

BuntDB is a low-level, in-memory, key/value store in pure Go. It persists to disk, is ACID compliant, and uses locking for multiple readers and a single writer. It supports custom indexes and geospatial data. It's ideal for projects that need a dependable database and favor speed over data size.

What is DALgo?

DALgo is a Database Abstraction Layer (in) Go (language).

End-to-End testing

This package is covered by end-to-end tests from github.com/dal-go/dalgo-end2end-tests.

License

Open source under MIT License & free to use.

Documentation

Index

Constants

View Source
const Version = "0.0.1"

Version indicates package version

Variables

View Source
var ErrKeyAlreadyExists = errors.New("key already exists")

ErrKeyAlreadyExists an error to be used in insert when generated key already exists

Functions

func NewDatabase

func NewDatabase(db *buntdb.DB) dal.DB

NewDatabase creates a new instance of DALgo adapter for BungDB

func NewInMemoryMockDB

func NewInMemoryMockDB(t *testing.T) dal.DB

NewInMemoryMockDB creates a new dal.Database as a wrapper of in-memory BuntDB instance

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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