db

package module
v0.0.0-...-e5acbb5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseConnectionFx = fx.Options(
	fx.Provide(
		NewConnection,
	),
)

DatabaseConnectionFx : constructor provide a initialised db connection with the given port. No need to close the connection of the db because we have a single pool with single db instance.

Functions

func NewConnection

func NewConnection(config *config.Config) *gorm.DB

NewConnection NewConnection: will open the connection with the database information that is passed as an argument

Types

This section is empty.

Jump to

Keyboard shortcuts

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