Documentation ¶
Index ¶
- func Up(db *bolt.DB, migrations ...Migration) error
- type LimitedTx
- func (l *LimitedTx) Bucket(name []byte) *bolt.Bucket
- func (l *LimitedTx) CreateBucket(name []byte) (*bolt.Bucket, error)
- func (l *LimitedTx) CreateBucketIfNotExists(name []byte) (*bolt.Bucket, error)
- func (l *LimitedTx) Cursor() *bolt.Cursor
- func (l *LimitedTx) DeleteBucket(name []byte) error
- func (l *LimitedTx) ForEach(fn func(name []byte, b *bolt.Bucket) error) error
- type Migration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LimitedTx ¶
type LimitedTx struct {
// contains filtered or unexported fields
}
LimitedTx wraps the standard bolt tx but does not allow commit or rollback behavior
func (*LimitedTx) CreateBucket ¶
CreateBucket creates a new bucket
func (*LimitedTx) CreateBucketIfNotExists ¶
CreateBucketIfNotExists creates a new bucket if it doesn't already exist
func (*LimitedTx) DeleteBucket ¶
DeleteBucket deletes a bucket
Click to show internal directories.
Click to hide internal directories.