database

package
v0.0.0-...-3699c76 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(opts ...fx.Option) fx.Option

func ProvideDatabase

func ProvideDatabase(config *Config) (*gorm.DB, error)

func ProvideDb

func ProvideDb(dialer gorm.Dialector, config *Config) (*gorm.DB, error)

Types

type Config

type Config struct {
	Host     string
	User     string
	Password string
	DbName   string
	Port     uint
}

func ProvideConfig

func ProvideConfig() *Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳