query

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("database",
	fx.Provide(
		SetupDB,
	),
	fx.Decorate(wrapLogger),
)

Functions

func MigrateDB

func MigrateDB(logger *zap.Logger, dsn string) error

func SetupDB

func SetupDB(p Params) (*sql.DB, error)

Types

type Params

type Params struct {
	fx.In

	LC     fx.Lifecycle
	Logger *zap.Logger
	Config *config.Config
}

Directories

Path Synopsis
fivenet

Jump to

Keyboard shortcuts

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