Documentation ¶
Index ¶
- Variables
- type LocalDB
- func (ldb *LocalDB) AllKey(table string) ([]string, error)
- func (ldb *LocalDB) Delete(table, key string) error
- func (ldb *LocalDB) Get(table, key string, data interface{}) error
- func (ldb *LocalDB) GetAll(table string, fn func(k, v []byte)) error
- func (ldb *LocalDB) HasTable(table string) bool
- func (ldb *LocalDB) Init()
- func (ldb *LocalDB) Last(table string) error
- func (ldb *LocalDB) Pg(table string) error
- func (ldb *LocalDB) Set(table, key string, data interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DBPath = "./data.db"
Functions ¶
This section is empty.
Types ¶
type LocalDB ¶
func NewLocalDB ¶
Click to show internal directories.
Click to hide internal directories.