Documentation
¶
Index ¶
- func Cover(dst, src []byte) *qerror.Error
- func Del(key []byte) *qerror.Error
- func Dels(keys ...[]byte) int
- func Exist(key []byte) bool
- func Get(key []byte) template.Node
- func Gets(keys ...[]byte) []template.Node
- func InitDB(c persistence.Config) (err *qerror.Error)
- func Iterators(callBack func(hash.Node) bool)
- func Regexp(rex []byte) [][]byte
- func Rename(dst, src []byte) *qerror.Error
- func Set(key []byte, value template.Node) *qerror.Error
- func SetX(key []byte, value template.Node)
- func Size() int
- func Update(key []byte, value template.Node) *qerror.Error
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Table ¶
type Table interface {
//Set value in table when value is not found before
Set([]byte, template.Node) *qerror.Error
//Set value in table
SetX([]byte, template.Node)
//Update value in table
Update([]byte, template.Node) *qerror.Error
//Get value in table with name
Get([]byte) template.Node
//Gets value list in table with name list
Gets(...[]byte) []template.Node
//Del node in table with key
Del([]byte) *qerror.Error
//Dels node int table with key list
Dels(...[]byte) int
//Regexp string to get value in table
Regexp([]byte) [][]byte
//Range iterators
Iterators(func(hash.Node) bool)
//Rename src to dst
Rename([]byte, []byte) *qerror.Error
//Cover src to dst, if dst is not found then rename src to dst
Cover([]byte, []byte) *qerror.Error
//Exist key
Exist([]byte) bool
//Size
Size() int
}
Click to show internal directories.
Click to hide internal directories.