Documentation
¶
Index ¶
- type StringKeyerDb
- func (bs *StringKeyerDb) Delete(ctx context.Context, key string) error
- func (bs *StringKeyerDb) Get(ctx context.Context, key string) (res []byte, err error)
- func (bs *StringKeyerDb) NewTransaction(ctx context.Context, readOnly bool) (kv.OrderedTransaction, error)
- func (bs *StringKeyerDb) Put(ctx context.Context, key string, value []byte) error
- type StringKeyerDbIterator
- type StringKeyerDbTransaction
- func (bs *StringKeyerDbTransaction) Delete(ctx context.Context, key string) error
- func (bs *StringKeyerDbTransaction) Get(ctx context.Context, key string) (res []byte, err error)
- func (bs *StringKeyerDbTransaction) Put(ctx context.Context, key string, value []byte) error
- func (bst *StringKeyerDbTransaction) Seek(ctx context.Context, StartKey string) (kv.Iterator, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringKeyerDb ¶
type StringKeyerDb struct {
kv.OrderedTransactional
}
func New ¶
func New(db kv.OrderedTransactional) *StringKeyerDb
New creates a new db where keys are strings and not bytes. Only a wrapper for []byte(key string)
func (*StringKeyerDb) Delete ¶
func (bs *StringKeyerDb) Delete(ctx context.Context, key string) error
Delete removes a key within a single transaction
func (*StringKeyerDb) NewTransaction ¶
func (bs *StringKeyerDb) NewTransaction(ctx context.Context, readOnly bool) (kv.OrderedTransaction, error)
NewTransaction for batching multiple values inside a transaction
type StringKeyerDbIterator ¶
type StringKeyerDbTransaction ¶
type StringKeyerDbTransaction struct {
kv.OrderedTransaction
}
func (*StringKeyerDbTransaction) Delete ¶
func (bs *StringKeyerDbTransaction) Delete(ctx context.Context, key string) error
Delete removes a key within a single transaction
func (*StringKeyerDbTransaction) Get ¶
Get gets the value of a key within a single query transaction
Click to show internal directories.
Click to hide internal directories.