Documentation
¶
Index ¶
- type BoltDB
- func (bo *BoltDB) BackupFromHttp(w http.ResponseWriter, req *http.Request)
- func (bo *BoltDB) Close()
- func (bo *BoltDB) Conn() (*bolt.DB, error)
- func (bo *BoltDB) CreateTable(tableName string) error
- func (bo *BoltDB) GetTable() (list []string, err error)
- func (bo *BoltDB) Insert(table, key, value string) error
- func (bo *BoltDB) Select(table, key string) (data string, err error)
- func (bo *BoltDB) SelectFor(table string, f func(k, v []byte) (map[string]string, error), ...) error
- func (bo *BoltDB) SelectFront(table string, count int) (data map[string]string)
- func (bo *BoltDB) SelectInterval(table, keyA, keyB string) (data map[string]string, err error)
- func (bo *BoltDB) SelectPrefix(table, key string) (data map[string]string, err error)
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 (*BoltDB) BackupFromHttp ¶
func (bo *BoltDB) BackupFromHttp(w http.ResponseWriter, req *http.Request)
数据库备份
func (*BoltDB) CreateTable ¶
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 ¶
SelectFront 从前面获取多少个
func (*BoltDB) SelectInterval ¶
区间扫描 use : SelectInterval(table, "2021-01-01 00:00:00", "2022-01-01 00:00:00")
Click to show internal directories.
Click to hide internal directories.