Documentation
¶
Overview ¶
Package db implements high-level database driver (multiple badger "buckets").
Index ¶
Constants ¶
View Source
const DefaultBucketName = "default"
DefaultBucketName contains the name of bucket created on database initialization.
Variables ¶
This section is empty.
Functions ¶
func InitDatabase ¶
InitDatabase creates the local database for use.
Types ¶
type Bucket ¶
type Bucket struct {
Name string
// contains filtered or unexported fields
}
Bucket is the single "table" within the database.
type Database ¶
type Database struct {
DefaultBucket string
// contains filtered or unexported fields
}
Database is the implementation of local storage layer.
func OpenDatabase ¶
OpenDatabase opens the local database for use.
Click to show internal directories.
Click to hide internal directories.