boltdb

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKey

func AddKey(db *bolt.DB, bucket string, key string, val string) error

AddKey - To add key into bucket

func AddRecord

func AddRecord(db *bolt.DB, bucket string, key string, data interface{}) error

AddRecord - To Add,append or update data into a bucket

func GetKey

func GetKey(db *bolt.DB, bucket, key string) ([]byte, error)

GetKey - To get data in bucket of given key

func GetRecord

func GetRecord(db *bolt.DB, bucket string) ([]byte, error)

GetRecord - To get all data in bucket

func InitDB

func InitDB(boltDatabasePath, bucketName string) (*bolt.DB, error)

InitDB - To create database and bucket

func RemoveKey

func RemoveKey(db *bolt.DB, bucket, key string) error

RemoveKey - To remove key from bucket

Types

This section is empty.

Jump to

Keyboard shortcuts

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