db

package
v0.0.0-...-6d0effa Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() *gorm.DB

func GetDB

func GetDB(ctx context.Context) *gorm.DB

func NewDB

func NewDB(cnf *conf.Conf, gormCnf *gorm.Config) (*gorm.DB, error)

func WithValue

func WithValue(ctx context.Context, db *gorm.DB) context.Context

func WrapGorm

func WrapGorm() func(next http.Handler) http.Handler

func WrapGormTx

func WrapGormTx() func(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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