Documentation ¶
Index ¶
- Constants
- func CreateKey(args ...tuple.Element) []byte
- 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 Tx
- func (tx *Tx) Close() (err error)
- func (tx *Tx) Commit() error
- func (tx *Tx) Del(key []byte) error
- func (t *Tx) DelRange(key []byte) 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) Put(key []byte, val []byte) error
- func (tx *Tx) PutProto(key []byte, val proto.Message) error
- func (tx *Tx) PutReserve(key []byte, size int) ([]byte, 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 ¶
Click to show internal directories.
Click to hide internal directories.