Documentation
¶
Overview ¶
Package gorm provides a GORM-based implementation of the store.Store interface.
Package gorm provides a GORM-based implementation of the store.Store interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migrate ¶
Migrate applies all pending up-migrations to the database identified by dsn. It returns nil if the database is already up to date.
func New ¶
func New(cfg config.DatabaseConfig) (store.Store, error)
New creates a new GORM-backed Store.
func NewStatisticsStore ¶
func NewStatisticsStore(db *gorm.DB) store.StatisticsStore
NewStatisticsStore creates a StatisticsStore backed by the given *gorm.DB. The caller (main.go) should pass the same *gorm.DB used by the main Store. AutoMigrate is handled by the main Store's New() function.
func NewWebhookStore ¶
NewWebhookStore creates a webhook.Store backed by the given *gorm.DB.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.