Documentation ¶
Index ¶
- type PebbleDB
- type WriteTx
- func (tx *WriteTx) Apply(other db.WriteTx) (err error)
- func (tx *WriteTx) Commit() error
- func (tx *WriteTx) Delete(k []byte) error
- func (tx *WriteTx) Discard()
- func (tx *WriteTx) Get(k []byte) ([]byte, error)
- func (tx *WriteTx) Iterate(prefix []byte, callback func(k, v []byte) bool) (err error)
- func (tx *WriteTx) Set(k, v []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PebbleDB ¶
type PebbleDB struct {
// contains filtered or unexported fields
}
PebbleDB implements db.Database interface
func New ¶
New returns a PebbleDB using the given Options, which implements the db.Database interface
func (*PebbleDB) Compact ¶ added in v1.9.0
Compact implements the db.Database.Compact interface method
type WriteTx ¶
type WriteTx struct {
// contains filtered or unexported fields
}
WriteTx implements the interface db.WriteTx
func (*WriteTx) Discard ¶
func (tx *WriteTx) Discard()
Discard implements the db.WriteTx.Discard interface method
Click to show internal directories.
Click to hide internal directories.