persistence

package
v0.0.0-...-c2329a5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(dbPath string) (*gorm.DB, error)

Types

type CatchModel

type CatchModel struct {
	gorm.Model
	catch.Catch
}

func (CatchModel) TableName

func (CatchModel) TableName() string

type GormCatchRepository

type GormCatchRepository struct {
	// contains filtered or unexported fields
}

func NewGormCatchRepository

func NewGormCatchRepository(db *gorm.DB) *GormCatchRepository

func (*GormCatchRepository) Create

func (r *GormCatchRepository) Create(c catch.Catch) error

Jump to

Keyboard shortcuts

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