Documentation ¶
Index ¶
- Constants
- func OpenPath(path string) (flat.KV, error)
- type DB
- type Iterator
- func (it *Iterator) Close() error
- func (it *Iterator) Err() error
- func (it *Iterator) Key() flat.Key
- func (it *Iterator) Next(ctx context.Context) bool
- func (it *Iterator) Reset()
- func (it *Iterator) Seek(ctx context.Context, key flat.Key) bool
- func (it *Iterator) Val() flat.Value
- func (it *Iterator) WithPrefix(pref flat.Key) flat.Iterator
- type Tx
- func (tx *Tx) Close() error
- func (tx *Tx) Commit(ctx context.Context) error
- func (tx *Tx) Del(ctx context.Context, k flat.Key) error
- func (tx *Tx) Get(ctx context.Context, key flat.Key) (flat.Value, error)
- func (tx *Tx) GetBatch(ctx context.Context, keys []flat.Key) ([]flat.Value, error)
- func (tx *Tx) Put(ctx context.Context, k flat.Key, v flat.Value) error
- func (tx *Tx) Scan(ctx context.Context, opts ...flat.IteratorOption) flat.Iterator
Constants ¶
View Source
const (
Name = "pebble"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func OpenPathOptions ¶ added in v0.2.0
OpenPathOptions is similar to OpenPath, but allow customizing Pebble options.
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.