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(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
- type Tx
- func (tx *Tx) Close() error
- func (tx *Tx) Commit(ctx context.Context) error
- func (tx *Tx) Del(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(k flat.Key, v flat.Value) error
- func (tx *Tx) Scan(pref flat.Key) 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)
Click to show internal directories.
Click to hide internal directories.