Documentation ¶
Index ¶
- type DB
- func (d *DB) BeginBatch() error
- func (d *DB) Close() error
- func (d *DB) CommitBatch() error
- func (d *DB) Delete(key []byte) error
- func (d *DB) Get(key []byte) ([]byte, error)
- func (d *DB) Has(key []byte) (bool, error)
- func (d *DB) Keys(prefix []byte) ([][]byte, error)
- func (d *DB) NewIteratorByPrefix(prefix []byte) interface{}
- func (d *DB) Put(key []byte, value []byte) error
- func (d *DB) Size() (int64, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is the leveldb databse
func (*DB) CommitBatch ¶
CommitBatch will commit the batch transaction
func (*DB) NewIteratorByPrefix ¶
NewIteratorByPrefix returns a new iterator by prefix
Click to show internal directories.
Click to hide internal directories.