Documentation ¶
Index ¶
- func NewBatch(db *DB) *batch
- type DB
- func (s *DB) Close() error
- func (s *DB) Destroy() error
- func (s *DB) DestroyClosed() error
- func (s *DB) Get(key []byte) ([]byte, error)
- func (s *DB) Has(key []byte) error
- func (s *DB) Init() error
- func (s *DB) IsInterfaceNil() bool
- func (s *DB) Put(key, val []byte) error
- func (s *DB) Remove(key []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB holds a pointer to the boltdb database and the path to where it is stored.
func NewDB ¶
NewDB is a constructor for the boltdb persister It creates the files in the location given as parameter
func (*DB) DestroyClosed ¶ added in v1.0.67
DestroyClosed removes the already closed storage medium stored data
func (*DB) IsInterfaceNil ¶ added in v1.0.16
IsInterfaceNil returns true if there is no value under the interface
Click to show internal directories.
Click to hide internal directories.