Documentation ¶
Overview ¶
Package bolt implements the db interface with boltdb.
Index ¶
- type Bucket
- func (a *Bucket) Bucket(key interface{}) db.Bucket
- func (a *Bucket) Create(key, value interface{}) error
- func (a *Bucket) CreateBucket(key interface{}) (db.Bucket, error)
- func (a *Bucket) Delete(key interface{}) error
- func (a *Bucket) DeleteBucket(key interface{}) error
- func (a *Bucket) Each(f interface{}, key interface{}, backward bool) (err error)
- func (a *Bucket) Get(key, value interface{}) error
- func (a *Bucket) Has(key interface{}) (bool, error)
- func (a *Bucket) IsEmpty() (bool, error)
- func (a *Bucket) MustBucket(key interface{}) (db.Bucket, error)
- func (a *Bucket) Put(key, value interface{}) error
- func (a *Bucket) Update(key, 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) MustBucket ¶
MustBucket 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) MustBucket ¶
MustBucket 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.