mysql

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: GPL-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"mysql",
	fx.Provide(NewGorm),
)

Functions

func NewGorm

func NewGorm(in GormParams) (*gorm.DB, error)

Types

type Configuration

type Configuration struct {
	Host     string
	User     string
	Password string
	DBName   string
}

type GormParams

type GormParams struct {
	fx.In

	Config Configuration
	Log    *zap.Logger
}

Jump to

Keyboard shortcuts

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