Versions in this module Expand all Collapse all v1 v1.0.0 Dec 21, 2023 Changes in this version + func Options() opt.Options + type LevelDB struct + func NewLevelDB(path string, cacheSizeMiB int) (*LevelDB, error) + func (db *LevelDB) Begin() (database.Transaction, error) + func (db *LevelDB) Close() error + func (db *LevelDB) Compact() error + func (db *LevelDB) Cursor(bucket *database.Bucket) (database.Cursor, error) + func (db *LevelDB) Delete(key *database.Key) error + func (db *LevelDB) Get(key *database.Key) ([]byte, error) + func (db *LevelDB) Has(key *database.Key) (bool, error) + func (db *LevelDB) Put(key *database.Key, value []byte) error + type LevelDBCursor struct + func (c *LevelDBCursor) Close() error + func (c *LevelDBCursor) First() bool + func (c *LevelDBCursor) Key() (*database.Key, error) + func (c *LevelDBCursor) Next() bool + func (c *LevelDBCursor) Seek(key *database.Key) error + func (c *LevelDBCursor) Value() ([]byte, error) + type LevelDBTransaction struct + func (tx *LevelDBTransaction) Commit() error + func (tx *LevelDBTransaction) Cursor(bucket *database.Bucket) (database.Cursor, error) + func (tx *LevelDBTransaction) Delete(key *database.Key) error + func (tx *LevelDBTransaction) Get(key *database.Key) ([]byte, error) + func (tx *LevelDBTransaction) Has(key *database.Key) (bool, error) + func (tx *LevelDBTransaction) Put(key *database.Key, value []byte) error + func (tx *LevelDBTransaction) Rollback() error + func (tx *LevelDBTransaction) RollbackUnlessClosed() error