dalgo2badger

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 7 Imported by: 0

README

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

Go Report Card

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

What is Badger DB?

Badger DB is an embeddable, persistent and fast key-value (KV) database written in pure Go. It is the underlying database for Dgraph, a fast, distributed graph database. It's meant to be a performant alternative to non-Go-based key-value stores like RocksDB.

What is DALgo?

DALgo is a Data Access 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 *badger.DB) dal.DB

NewDatabase creates a new instance of DALgo adapter for BungDB

Types

This section is empty.

Jump to

Keyboard shortcuts

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