Versions in this module Expand all Collapse all v0 v0.0.2 Feb 21, 2020 Changes in this version + func BucketNameConcat(slices ...[]byte) []byte + func BytesConcat(slices ...[]byte) []byte + func BytesToString(b []byte) string + func BytesToUint64(v []byte) uint64 + func StringToBytes(s string) []byte + func Uint64ToBytes(v uint64) []byte + type DB struct + func Open(path string) (*DB, error) + func (db *DB) Close() error + func (db *DB) NewTx(writable bool) *Tx + type Tx struct + func (tx *Tx) Commit() error + func (tx *Tx) Delete(name []byte, keys ...[]byte) error + func (tx *Tx) DeleteBucket(name []byte) error + func (tx *Tx) Err() error + func (tx *Tx) Error(err error) error + func (tx *Tx) ForEach(name []byte, fn func(k, v []byte) error) error + func (tx *Tx) Get(name []byte, keys ...[]byte) [][]byte + func (tx *Tx) Next(name []byte, key []byte, limit int) [][]byte + func (tx *Tx) NextSequence(name []byte) (uint64, error) + func (tx *Tx) Prev(name []byte, key []byte, limit int) [][]byte + func (tx *Tx) Put(name []byte, kvs ...[]byte) error + func (tx *Tx) Rollback() error + func (tx *Tx) Sequence(name []byte) uint64 + func (tx *Tx) SortDelete(name []byte, keys ...[]byte) error + func (tx *Tx) SortDeleteBucket(name []byte) error + func (tx *Tx) SortNext(name []byte, key []byte, limit int) [][]byte + func (tx *Tx) SortPrev(name []byte, key []byte, limit int) [][]byte + func (tx *Tx) SortPut(name []byte, sortKey []byte, kvs ...[]byte) error