ibolt

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Batch

func Batch(fn func(*Tx) error) error

func Close

func Close()

func D added in v0.0.2

func D(fn func(*DB) error) error

func Init

func Init(xpath string)

func Update

func Update(fn func(*Tx) error) error

func View

func View(fn func(*Tx) error) error

Types

type Bucket

type Bucket = bbolt.Bucket

type Connection

type Connection struct {
	DB *bbolt.DB
	// contains filtered or unexported fields
}

func (*Connection) Close

func (c *Connection) Close()

type DB

type DB = bbolt.DB

type Pool

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

func New

func New() *Pool

func (*Pool) Close

func (p *Pool) Close()

func (*Pool) Get

func (p *Pool) Get(path string) (*Connection, error)

func (*Pool) Has

func (p *Pool) Has(path string) bool

type Tx

type Tx = bbolt.Tx

Jump to

Keyboard shortcuts

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