Documentation ¶
Index ¶
- Constants
- func ECodeName(ecode int) string
- func ECodeNameBDB(ecode int) string
- func ECodeNameFDB(ecode int) string
- func ECodeNameHDB(ecode int) string
- type ADB
- func (db *ADB) AbortTxn() (err error)
- func (db *ADB) AddDouble(key []byte, value float64) (newvalue float64, err error)
- func (db *ADB) AddInt(key []byte, value int) (newvalue int, err error)
- func (db *ADB) BeginTxn() (err error)
- func (db *ADB) Close() (err error)
- func (db *ADB) CommitTxn() (err error)
- func (db *ADB) Del()
- func (db *ADB) Get(key []byte) (out []byte, err error)
- func (db *ADB) IterKeys() (c chan []byte, e chan error)
- func (db *ADB) IterKeysString() ([]string, error)
- func (db *ADB) IterKeysStringSorted() ([]string, error)
- func (db *ADB) Open(path string) (err error)
- func (db *ADB) Put(key []byte, value []byte) (err error)
- func (db *ADB) PutCat(key []byte, value []byte) (err error)
- func (db *ADB) PutKeep(key []byte, value []byte) (err error)
- func (db *ADB) Remove(key []byte) (err error)
- func (db *ADB) Size(key []byte) (out int, err error)
- func (db *ADB) Sync() (err error)
- type BDB
- func (db *BDB) AbortTxn() (err error)
- func (db *BDB) AddDouble(key []byte, value float64) (newvalue float64, err error)
- func (db *BDB) AddInt(key []byte, value int) (newvalue int, err error)
- func (db *BDB) BeginTxn() (err error)
- func (db *BDB) Close() (err error)
- func (db *BDB) CommitTxn() (err error)
- func (db *BDB) Del()
- func (db *BDB) Get(key []byte) (out []byte)
- func (db *BDB) LastECode() int
- func (db *BDB) LastError() error
- func (db *BDB) Open(path string, omode int) (err error)
- func (db *BDB) Put(key []byte, value []byte) (err error)
- func (db *BDB) PutCat(key []byte, value []byte) (err error)
- func (db *BDB) PutKeep(key []byte, value []byte) (err error)
- func (db *BDB) Range(startKey []byte, startInclusive bool, endKey []byte, endInclusive bool, ...) (keys [][]byte, err error)
- func (db *BDB) Remove(key []byte) (err error)
- func (db *BDB) Size(key []byte) (out int, err error)
- func (db *BDB) Sync() (err error)
- type FDB
- func (db *FDB) AbortTxn() (err error)
- func (db *FDB) AddDouble(key int64, value float64) (newvalue float64, err error)
- func (db *FDB) AddInt(key int64, value int) (newvalue int, err error)
- func (db *FDB) BeginTxn() (err error)
- func (db *FDB) Close() (err error)
- func (db *FDB) CommitTxn() (err error)
- func (db *FDB) Del()
- func (db *FDB) Get(key int64) (out []byte, err error)
- func (db *FDB) IterKeys() (c chan int64, e chan error)
- func (db *FDB) LastECode() int
- func (db *FDB) LastError() error
- func (db *FDB) Open(path string, omode int) (err error)
- func (db *FDB) Put(key int64, value []byte) (err error)
- func (db *FDB) PutCat(key int64, value []byte) (err error)
- func (db *FDB) PutKeep(key int64, value []byte) (err error)
- func (db *FDB) Remove(key int64) (err error)
- func (db *FDB) Size(key int64) (out int, err error)
- func (db *FDB) Sync() (err error)
- type HDB
- func (db *HDB) AbortTxn() (err error)
- func (db *HDB) AddDouble(key []byte, value float64) (newvalue float64, err error)
- func (db *HDB) AddInt(key []byte, value int) (newvalue int, err error)
- func (db *HDB) BeginTxn() (err error)
- func (db *HDB) Close() (err error)
- func (db *HDB) CommitTxn() (err error)
- func (db *HDB) Del()
- func (db *HDB) Get(key []byte) (out []byte, err error)
- func (db *HDB) IterKeys() (c chan []byte, e chan error)
- func (db *HDB) LastECode() int
- func (db *HDB) LastError() error
- func (db *HDB) Open(path string, omode int) (err error)
- func (db *HDB) Put(key []byte, value []byte) (err error)
- func (db *HDB) PutAsync(key []byte, value []byte) (err error)
- func (db *HDB) PutCat(key []byte, value []byte) (err error)
- func (db *HDB) PutKeep(key []byte, value []byte) (err error)
- func (db *HDB) Remove(key []byte) (err error)
- func (db *HDB) SetCache(rcnum int32) (err error)
- func (db *HDB) SetDefragStepSize(dfunit int32) (err error)
- func (db *HDB) SetExtraMemorySize(xmsiz int64) (err error)
- func (db *HDB) Size(key []byte) (out int, err error)
- func (db *HDB) Sync() (err error)
- func (db *HDB) Tune(bnum int64, apow int8, fpow int8, opts uint8) (err error)
- type TokyoCabinetError
Constants ¶
View Source
const BDBFFATAL int = C.BDBFFATAL
View Source
const BDBFOPEN int = C.BDBFOPEN
View Source
const BDBOCREAT int = C.BDBOCREAT
View Source
const BDBOLCKNB int = C.BDBOLCKNB
View Source
const BDBONOLCK int = C.BDBONOLCK
View Source
const BDBOREADER int = C.BDBOREADER
View Source
const BDBOTRUNC int = C.BDBOTRUNC
View Source
const BDBOWRITER int = C.BDBOWRITER
View Source
const BDBTBZIP int = C.BDBTBZIP
View Source
const BDBTDEFLATE int = C.BDBTLARGE
View Source
const BDBTEXCODEC int = C.BDBTEXCODEC
View Source
const BDBTLARGE int = C.BDBTLARGE
View Source
const BDBTTCBS int = C.BDBTTCBS
View Source
const ERR_MSG string = "Database operation failed"
Abstract Database Object doesn't provide detailed error messages.
View Source
const FDBFFATAL int = C.FDBFFATAL
View Source
const FDBFOPEN int = C.FDBFOPEN
View Source
const FDBOCREAT int = C.FDBOCREAT
View Source
const FDBOLCKNB int = C.FDBOLCKNB
View Source
const FDBONOLCK int = C.FDBONOLCK
View Source
const FDBOREADER int = C.FDBOREADER
View Source
const FDBOTRUNC int = C.FDBOTRUNC
View Source
const FDBOWRITER int = C.FDBOWRITER
View Source
const HDBFFATAL int = C.HDBFFATAL
View Source
const HDBFOPEN int = C.HDBFOPEN
View Source
const HDBOCREAT int = C.HDBOCREAT
View Source
const HDBOLCKNB int = C.HDBOLCKNB
View Source
const HDBONOLCK int = C.HDBONOLCK
View Source
const HDBOREADER int = C.HDBOREADER
View Source
const HDBOTRUNC int = C.HDBOTRUNC
View Source
const HDBOWRITER int = C.HDBOWRITER
View Source
const HDBTBZIP int = C.HDBTBZIP
View Source
const HDBTDEFLATE int = C.HDBTLARGE
View Source
const HDBTEXCODEC int = C.HDBTEXCODEC
View Source
const HDBTLARGE int = C.HDBTLARGE
View Source
const HDBTTCBS int = C.HDBTTCBS
View Source
const TCDBTBTREE int = C.TCDBTBTREE
View Source
const TCDBTFIXED int = C.TCDBTFIXED
View Source
const TCDBTHASH int = C.TCDBTHASH
View Source
const TCDBTTABLE int = C.TCDBTTABLE
View Source
const TCECLOSE int = C.TCECLOSE
View Source
const TCEKEEP int = C.TCEKEEP
View Source
const TCELOCK int = C.TCELOCK
View Source
const TCEMETA int = C.TCEMETA
View Source
const TCEMISC int = C.TCEMISC
View Source
const TCEMKDIR int = C.TCEMKDIR
View Source
const TCEMMAP int = C.TCEMMAP
View Source
const TCENOFILE int = C.TCENOFILE
View Source
const TCENOPERM int = C.TCENOPERM
View Source
const TCENOREC int = C.TCENOREC
View Source
const TCEOPEN int = C.TCEOPEN
View Source
const TCEREAD int = C.TCEREAD
View Source
const TCERENAME int = C.TCERENAME
View Source
const TCERHEAD int = C.TCERHEAD
View Source
const TCERMDIR int = C.TCERMDIR
View Source
const TCESEEK int = C.TCESEEK
View Source
const TCESTAT int = C.TCESTAT
View Source
const TCESUCCESS int = C.TCESUCCESS
View Source
const TCESYNC int = C.TCESYNC
View Source
const TCETHREAD int = C.TCETHREAD
View Source
const TCETRUNC int = C.TCETRUNC
View Source
const TCEUNLINK int = C.TCEUNLINK
View Source
const TCEWRITE int = C.TCEWRITE
View Source
const TCINVALID int = C.TCEINVALID
Variables ¶
This section is empty.
Functions ¶
func ECodeNameBDB ¶
func ECodeNameFDB ¶
func ECodeNameHDB ¶
Types ¶
type ADB ¶
type ADB struct {
// contains filtered or unexported fields
}
ADB represents an Abstract Database Object which supports all Tokyo Cabinet database types.
func (*ADB) Close ¶
Close will close the opened database
Note: Update of a database is assured to be written when the database is closed. If a writer opens a database but does not close it appropriately, the database will be broken.
func (*ADB) IterKeysString ¶ added in v1.1.0
IterKeysString is an IterKeys() helper method that returns a slice of iterated strings.
NOTE: returned []string can be in arbitrary order, see IterKeysStringSorted()
func (*ADB) IterKeysStringSorted ¶ added in v1.1.0
IterKeysStringSorted is an IterKeys() helper method that returns a sorted slice of iterated strings.
type BDB ¶
type BDB struct {
// contains filtered or unexported fields
}
type FDB ¶
type FDB struct {
// contains filtered or unexported fields
}
type HDB ¶
type HDB struct {
// contains filtered or unexported fields
}
func (*HDB) SetDefragStepSize ¶
func (*HDB) SetExtraMemorySize ¶
type TokyoCabinetError ¶
type TokyoCabinetError struct {
// contains filtered or unexported fields
}
func NewTokyoCabinetError ¶
func NewTokyoCabinetError(code int, msg string) *TokyoCabinetError
func (TokyoCabinetError) Error ¶
func (e TokyoCabinetError) Error() string
Click to show internal directories.
Click to hide internal directories.