Documentation ¶
Index ¶
- Constants
- func OpenPath(path string) (flat.KV, error)
- type DB
- func (db *DB) Close() error
- func (db *DB) SetReadOptions(ro *opt.ReadOptions)
- func (db *DB) SetWriteOptions(wo *opt.WriteOptions)
- func (db *DB) Tx(ctx context.Context, rw bool) (flat.Tx, error)
- func (db *DB) Update(ctx context.Context, fn func(tx flat.Tx) error) error
- func (db *DB) View(ctx context.Context, fn func(tx flat.Tx) error) error
- 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 = "leveldb"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) SetReadOptions ¶
func (db *DB) SetReadOptions(ro *opt.ReadOptions)
func (*DB) SetWriteOptions ¶
func (db *DB) SetWriteOptions(wo *opt.WriteOptions)
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.