Documentation
¶
Index ¶
- Constants
- func CreateKey(args ...tuple.Element) []byte
- func NewDbWithKeys(t *testing.T, keys []tuple.Tuple) (*DB, *Tx)
- func NewDbWithRange(t *testing.T, max int) (*DB, *Tx)
- type Config
- type DB
- func (db *DB) Close() error
- func (db *DB) CreateRead() (tx *Tx, err error)
- func (db *DB) CreateTransaction(flags uint) (tx *Tx, err error)
- func (db *DB) CreateWrite() (tx *Tx, err error)
- func (db *DB) Read(fn TxOp) error
- func (db *DB) Update(fn TxOp) error
- func (db *DB) UpdateLocked(threadLocked bool, fn TxOp) error
- type KeyValue
- type Queue
- type RangeOptions
- type Tx
- func (tx *Tx) Close() (err error)
- func (tx *Tx) Commit() error
- func (tx *Tx) Decrement(key []byte) error
- func (tx *Tx) Del(key []byte) error
- func (tx *Tx) DelRange(key []byte) error
- func (tx *Tx) FirstFromRange(key []byte) (k []byte, v interface{}, err error)
- func (tx *Tx) Get(key []byte) (data []byte, err error)
- func (tx *Tx) GetNext(key []byte) (k, v []byte, err error)
- func (tx *Tx) GetPrev(key []byte) (k, v []byte, err error)
- func (tx *Tx) GetRange(key []byte, opt RangeOptions) (kvs []KeyValue, err error)
- func (tx *Tx) Increment(key []byte) error
- func (tx *Tx) Put(key []byte, val []byte) error
- func (tx *Tx) PutGob(key []byte, obj interface{}) error
- func (tx *Tx) PutProto(key []byte, val proto.Message) error
- func (tx *Tx) PutReserve(key []byte, size int) ([]byte, error)
- func (tx *Tx) ReadGob(key []byte, obj interface{}) error
- func (tx *Tx) ReadProto(key []byte, pb proto.Message) error
- func (tx *Tx) ScanRange(key []byte, row func(k, v []byte) error) error
- type TxOp
Constants ¶
View Source
const (
ReadOnly = lmdb.Readonly
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
func (*DB) CreateRead ¶
func (*DB) CreateWrite ¶
type RangeOptions ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.