gorm

package
v0.0.0-...-5ed4770 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 28 Imported by: 0

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

func Migrate(dsn string) (err error)

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

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

func NewWebhookStore(db *gorm.DB) webhook.Store

NewWebhookStore creates a webhook.Store backed by the given *gorm.DB.

func Rollback

func Rollback(dsn string) (err error)

Rollback reverses the last applied migration.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL