Documentation ¶
Overview ¶
Package db implements simple method of treatment to bbolt db.
Index ¶
- type Bucket
- func (bucket *Bucket) Count() uint
- func (bucket *Bucket) DB() DB
- func (bucket *Bucket) Delete(keyI any) error
- func (bucket *Bucket) DeleteAll() error
- func (bucket *Bucket) Get(keyI any) (Model, error)
- func (bucket *Bucket) Manager() ManagerI
- func (bucket *Bucket) Model() Model
- func (bucket *Bucket) Name() string
- func (bucket *Bucket) Save(model Model) error
- func (bucket *Bucket) SetManager(newManager ManagerI)
- type DataBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct { Objects ManagerI // contains filtered or unexported fields }
Bucket implements interface simple access to read/write in bbolt db.
func (*Bucket) SetManager ¶ added in v0.13.0
func (bucket *Bucket) SetManager(newManager ManagerI)
type DataBase ¶
type DataBase struct {
// contains filtered or unexported fields
}
DataBase implements interface access to bbolt db.
func (*DataBase) ExistsTable ¶
ExistsBucket returns true if bucket exists.
func (*DataBase) Table ¶
Table returns pointer to Bucket in db, Returns error if name is too long. name is not required
func (*DataBase) TableFromCache ¶ added in v0.12.1
Click to show internal directories.
Click to hide internal directories.