Documentation ¶
Index ¶
- type DBI
- func (db *DBI) Delete(key []byte) (err error)
- func (db *DBI) Drop() (err error)
- func (db *DBI) Get(key []byte) (value []byte, err error)
- func (db *DBI) GetIterator(key []byte) (iterator db.IIterator, err error)
- func (db *DBI) Gets(key []byte, count uint) (keys [][]byte, values [][]byte, err error)
- func (db *DBI) Put(key []byte, value []byte) (err error)
- func (db *DBI) Puts(keys [][]byte, values [][]byte) (err error)
- type DBISnapshot
- type Iterator
- type Lmdb
- func (m *Lmdb) Close() (err error)
- func (m *Lmdb) Open(dbName string) (rw db.IDatabaseWriterReader, err error)
- func (m *Lmdb) OpenReader(dbName string) (reader db.IDatabaseReader, err error)
- func (m *Lmdb) OpenWriter(dbName string) (writer db.IDatabaseWriter, err error)
- func (m *Lmdb) Snapshot() (db.ISnapshot, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBISnapshot ¶
type DBISnapshot struct {
// contains filtered or unexported fields
}
func (*DBISnapshot) Commit ¶
func (db *DBISnapshot) Commit() error
func (*DBISnapshot) Get ¶
func (db *DBISnapshot) Get(dbName string, key []byte) (value []byte, err error)
func (*DBISnapshot) IsRunning ¶
func (db *DBISnapshot) IsRunning() bool
func (*DBISnapshot) Put ¶
func (db *DBISnapshot) Put(dbName string, key []byte, value []byte) (err error)
func (*DBISnapshot) Rollback ¶
func (db *DBISnapshot) Rollback()
type Lmdb ¶
func NewLMDB ¶
func NewLMDB(c context.Context, nodeConfig *conf.NodeConfig, config *conf.DatabaseConfig) (*Lmdb, error)
func (*Lmdb) OpenReader ¶
func (m *Lmdb) OpenReader(dbName string) (reader db.IDatabaseReader, err error)
func (*Lmdb) OpenWriter ¶
func (m *Lmdb) OpenWriter(dbName string) (writer db.IDatabaseWriter, err error)
Click to show internal directories.
Click to hide internal directories.