mem

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewMemoryDatabase

func NewMemoryDatabase(concurrentReaders int) *Database

func (*Database) BatchWriter added in v0.0.14

func (db *Database) BatchWriter() dbpkg.BatchWriter

func (*Database) Close

func (db *Database) Close()

func (*Database) Update

func (db *Database) Update(fn func(tx dbpkg.Transaction) error) error

func (*Database) Vacuum added in v0.0.14

func (db *Database) Vacuum() bool

func (*Database) View

func (db *Database) View(fn func(tx dbpkg.Transaction) error) error

Jump to

Keyboard shortcuts

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