dbclient

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(dsn string, driver string, createSql string) error

func GetMysqlDB

func GetMysqlDB() *gorm.DB

func Init

func Init(dsn, logMode string, maxIdleConns, maxOpenConns int) (*gorm.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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