memoryengine

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine is a simple memory engine implementation that stores data in an in-memory Btree. It is not thread safe.

func NewEngine

func NewEngine() *Engine

NewEngine creates an in-memory engine.

func (*Engine) Begin

func (ng *Engine) Begin(ctx context.Context, opts engine.TxOptions) (engine.Transaction, error)

Begin creates a transaction.

func (*Engine) Close

func (ng *Engine) Close() error

Close the engine.

Jump to

Keyboard shortcuts

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