Documentation ¶
Overview ¶
Package bolt implements the db interface with boltdb.
Index ¶
- type Bucket
- func (a *Bucket) Bucket(key []byte) db.Bucket
- func (a *Bucket) Create(key []byte, value interface{}) error
- func (a *Bucket) CreateBucket(key []byte) (db.Bucket, error)
- func (a *Bucket) Delete(key []byte) error
- func (a *Bucket) DeleteBucket(key []byte) error
- func (a *Bucket) Each(f interface{}, min, max []byte) error
- func (a *Bucket) Get(key []byte, value interface{}) error
- func (a *Bucket) Has(key []byte) (bool, error)
- func (a *Bucket) IsEmpty() (bool, error)
- func (a *Bucket) Put(key []byte, value interface{}) error
- func (a *Bucket) RequireBucket(key []byte) (db.Bucket, error)
- func (a *Bucket) Update(key []byte, value interface{}) error
- type DB
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
Bucket represents a collection of items inside the database.
func (*Bucket) CreateBucket ¶
CreateBucket creates a new bucket.
func (*Bucket) DeleteBucket ¶
DeleteBucket deletes the bucket by key.
func (*Bucket) RequireBucket ¶
RequireBucket creates a new bucket if it doesn't already exist and returns a reference to it.
type DB ¶
DB represents a database.
type Tx ¶
Tx represents a transaction on the database.
func (*Tx) CreateBucket ¶
CreateBucket creates a new bucket.
func (*Tx) DeleteBucket ¶
DeleteBucket deletes the bucket by key.
func (*Tx) RequireBucket ¶
RequireBucket creates a new bucket if it doesn't already exist and returns a reference to it.
Click to show internal directories.
Click to hide internal directories.