bolt

package
v0.0.0-...-d6864b1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDB

type BoltDB struct {
	edendb.Database
	Path string // The path to the database file.
	// contains filtered or unexported fields
}

func NewBoltDB

func NewBoltDB(path string) (*BoltDB, error)

func (*BoltDB) AddIfNotExists

func (db *BoltDB) AddIfNotExists(collectionName string, value interface{}) error

func (*BoltDB) AddRecord

func (db *BoltDB) AddRecord(collectionName string, value interface{}) error

func (*BoltDB) One

func (db *BoltDB) One(collectionName string, field string, value interface{}, output interface{}) error

func (*BoltDB) RemoveCollection

func (db *BoltDB) RemoveCollection(collectionName string) error

func (*BoltDB) RemoveRecord

func (db *BoltDB) RemoveRecord(collectionName string, value interface{}) error

func (*BoltDB) UpdateField

func (db *BoltDB) UpdateField(collectionName string, field string, value interface{}, target interface{}) error

func (*BoltDB) UpdateRecord

func (db *BoltDB) UpdateRecord(collectionName string, value interface{}) error

Jump to

Keyboard shortcuts

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