boltdb

package
v0.0.0-...-67d91c4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDB

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

func NewBoltDB

func NewBoltDB(fileName string) (bo *BoltDB, err error)

func (*BoltDB) BackupFromHttp

func (bo *BoltDB) BackupFromHttp(w http.ResponseWriter, req *http.Request)

数据库备份

func (*BoltDB) Close

func (bo *BoltDB) Close()

func (*BoltDB) Conn

func (bo *BoltDB) Conn() (*bolt.DB, error)

func (*BoltDB) CreateTable

func (bo *BoltDB) CreateTable(tableName string) error

func (*BoltDB) GetTable

func (bo *BoltDB) GetTable() (list []string, err error)

func (*BoltDB) Insert

func (bo *BoltDB) Insert(table, key, value string) error

func (*BoltDB) Select

func (bo *BoltDB) Select(table, key string) (data string, err error)

func (*BoltDB) SelectFor

func (bo *BoltDB) SelectFor(table string, f func(k, v []byte) (map[string]string, error), data map[string]string) error

Fro

func (*BoltDB) SelectFront

func (bo *BoltDB) SelectFront(table string, count int) (data map[string]string)

SelectFront 从前面获取多少个

func (*BoltDB) SelectInterval

func (bo *BoltDB) SelectInterval(table, keyA, keyB string) (data map[string]string, err error)

区间扫描 use : SelectInterval(table, "2021-01-01 00:00:00", "2022-01-01 00:00:00")

func (*BoltDB) SelectPrefix

func (bo *BoltDB) SelectPrefix(table, key string) (data map[string]string, err error)

前缀扫描

Jump to

Keyboard shortcuts

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