db

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBVersion string

DBVersion is the BadgerDB version.

Functions

func Open

func Open(path string) (*badger.DB, error)

Opens a file-based database at path, if path is empty opens it in /tmp/badger

func OpenInMemory

func OpenInMemory() (*badger.DB, error)

Opens a in memory database

Types

type DB

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

Jump to

Keyboard shortcuts

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