Documentation
¶
Index ¶
- Constants
- type MDBX
- func (m *MDBX) Close() error
- func (m *MDBX) Delete(key []byte) error
- func (m *MDBX) DeleteSync(key []byte) error
- func (m *MDBX) Get(key []byte) ([]byte, error)
- func (m *MDBX) Has(key []byte) (bool, error)
- func (m *MDBX) Iterator(start, end []byte) (db.Iterator, error)
- func (m *MDBX) NewBatch() db.Batch
- func (m *MDBX) NewBatchWithSize(_ int) db.Batch
- func (m *MDBX) Print() error
- func (m *MDBX) ReverseIterator(start, end []byte) (db.Iterator, error)
- func (m *MDBX) Set(key, value []byte) error
- func (m *MDBX) SetSync(key, value []byte) error
- func (m *MDBX) Stats() map[string]string
Constants ¶
View Source
const DefaultMapSize int = 1 << 40
DefaultMapSize is the default maximum database size (1 TB).
View Source
const (
MDBXBackend db.BackendType = "mdbxdb"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MDBX ¶
type MDBX struct {
// contains filtered or unexported fields
}
MDBX wraps an mdbx.Env + DBI handle.
func NewMDBXWithOptions ¶
NewMDBXWithOptions opens an MDBX database with custom map size and flags. Extra flags are OR'd with the base flags (NoMetaSync | WriteMap | NoReadahead).
func (*MDBX) DeleteSync ¶
func (*MDBX) Iterator ¶
Iterator implements db.DB. The caller MUST call Close() on the returned iterator to release resources.
func (*MDBX) ReverseIterator ¶
ReverseIterator implements db.DB. The caller MUST call Close() on the returned iterator to release resources.
Click to show internal directories.
Click to hide internal directories.