Documentation ¶
Index ¶
- Constants
- type DB
- func (db *DB) Begin() (driver.Tx, error)
- func (db *DB) Close() error
- func (db *DB) Delete(key []byte) error
- func (db *DB) Get(key []byte) ([]byte, error)
- func (db *DB) NewIterator() driver.IIterator
- func (db *DB) NewSnapshot() (driver.ISnapshot, error)
- func (db *DB) NewWriteBatch() driver.IWriteBatch
- func (db *DB) Put(key, value []byte) error
- type Iterator
- type MemStore
- type Snapshot
- type Store
- type WriteBatch
Constants ¶
View Source
const DBName = "goleveldb"
View Source
const MemDBName = "memory"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) NewIterator ¶
func (*DB) NewWriteBatch ¶
func (db *DB) NewWriteBatch() driver.IWriteBatch
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
func (*Snapshot) NewIterator ¶
type WriteBatch ¶
type WriteBatch struct {
// contains filtered or unexported fields
}
func (*WriteBatch) Commit ¶
func (w *WriteBatch) Commit() error
func (*WriteBatch) Delete ¶
func (w *WriteBatch) Delete(key []byte)
func (*WriteBatch) Put ¶
func (w *WriteBatch) Put(key, value []byte)
func (*WriteBatch) Rollback ¶
func (w *WriteBatch) Rollback() error
Click to show internal directories.
Click to hide internal directories.