query

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 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 added in v0.8.0

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