database

package
v0.0.0-...-09ba4a8 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(c *config.AppConfig)

func GetDb

func GetDb(ctx context.Context) *gorm.DB

func InitDb

func InitDb(config *config.AppConfig) (*gorm.DB, func())

func NewGormDB

func NewGormDB(c *config.AppConfig) *gorm.DB

func PingDb

func PingDb(db *gorm.DB, c *config.AppConfig)

Types

This section is empty.

Jump to

Keyboard shortcuts

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