query

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 29 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, dbDSN string, esxCompat bool) error

func NewMigrate added in v0.9.5

func NewMigrate(db *sql.DB, esxCompat bool) (*migrate.Migrate, error)

func SetupDB

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

Types

type MigrateLogger added in v0.9.5

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

func NewMigrateLogger added in v0.9.5

func NewMigrateLogger(logger *zap.Logger) *MigrateLogger

func (*MigrateLogger) Printf added in v0.9.5

func (l *MigrateLogger) Printf(format string, v ...any)

func (*MigrateLogger) Verbose added in v0.9.5

func (l *MigrateLogger) Verbose() bool

Verbose should return true when verbose logging output is wanted

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