mysqlgorm

package
v0.0.0-...-3aaf624 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGorm

func InitGorm(dsn string) (db *gorm.DB, err error)

func InitGormWithConfig

func InitGormWithConfig(cfg DBConfig) (db *gorm.DB, err error)

Types

type DBConfig

type DBConfig struct {
	DSN             string
	MaxOpenConns    int
	MaxIdleConns    int
	ConnMaxLifetime time.Duration
	ConnMaxIdleTime time.Duration
	Debug           bool
	SilentLog       bool
}

Jump to

Keyboard shortcuts

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