Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTxSupport = errors.New("transaction is not supported")
)
Functions ¶
func ListStores ¶
func ListStores() []string
Types ¶
type IDB ¶
type IDB interface { Close() error Get(key []byte) ([]byte, error) Put(key []byte, value []byte) error Delete(key []byte) error SyncPut(key []byte, value []byte) error SyncDelete(key []byte) error NewIterator() IIterator NewWriteBatch() IWriteBatch NewSnapshot() (ISnapshot, error) Begin() (Tx, error) Compact() error }
type ISliceGeter ¶
type IWriteBatch ¶
type Store ¶
type WriteBatch ¶
type WriteBatch struct {
// contains filtered or unexported fields
}
func NewWriteBatch ¶
func NewWriteBatch(puter BatchPuter) *WriteBatch
func (*WriteBatch) Close ¶
func (wb *WriteBatch) Close()
func (*WriteBatch) Commit ¶
func (wb *WriteBatch) Commit() error
func (*WriteBatch) Data ¶
func (wb *WriteBatch) Data() []byte
func (*WriteBatch) Delete ¶
func (wb *WriteBatch) Delete(key []byte)
func (*WriteBatch) Put ¶
func (wb *WriteBatch) Put(key, value []byte)
func (*WriteBatch) Rollback ¶
func (wb *WriteBatch) Rollback() error
func (*WriteBatch) SyncCommit ¶
func (wb *WriteBatch) SyncCommit() error
Click to show internal directories.
Click to hide internal directories.