Documentation ¶
Overview ¶
Package dbs is a wrapper for Package db Package provides functions for working with map[string]*db.BoltAPI
Index ¶
- func AddBucket(dbPath, bucketName string) (code int, err error)
- func AddRecord(dbPath, key, value string) (code int, err error)
- func CloseDB(dbPath string) (code int, err error)
- func CloseDBs()
- func CreateDB(path string) (dbName, dbPath string, code int, err error)
- func DeleteBucket(dbPath, bucketName string) (code int, err error)
- func DeleteRecord(dbPath, key string) (code int, err error)
- func EditBucketName(dbPath, oldName, newName string) (code int, err error)
- func EditRecord(dbPath, oldKey, newKey, newValue string) (code int, err error)
- func GetNextRecords(dbPath string) (data db.Data, code int, err error)
- func GetPrevRecrods(dbPath string) (data db.Data, code int, err error)
- func GetRoot(dbPath string) (data db.Data, code int, err error)
- func Init()
- func NextBucket(dbPath, bucket string) (data db.Data, code int, err error)
- func OpenDB(dbPath string, readOnly bool) (dbName string, code int, err error)
- func PrevBucket(dbPath string) (data db.Data, code int, err error)
- func Search(dbPath, mode, text string) (records []db.Record, path string, recordsAmount int, code int, err error)
- type DBInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBucket ¶
DeleteBucket is a wrapper for *BoltAPI.DeleteBucket()
func DeleteRecord ¶
DeleteRecord is a wrapper for *BoltAPI.DeleteRecord()
func EditBucketName ¶
EditBucketName is a wrapper for *BoltAPI.EditBucketName()
func EditRecord ¶
EditRecord is a wrapper for *BoltAPI.EditRecord()
func GetNextRecords ¶
GetNextRecords is a wrapper for *BoltAPI.NextRecords()
func GetPrevRecrods ¶
GetPrevRecrods is a wrapper for *BoltAPI.PrevRecords()
func NextBucket ¶
NextBucket is a wrapper for *BoltAPI.Next()
func PrevBucket ¶
PrevBucket is a wrapper for *BoltAPI.Back()
Types ¶
Click to show internal directories.
Click to hide internal directories.