mysql

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conn *sql.DB
View Source
var ConnORM *gorm.DB

Functions

func ConnMySQL

func ConnMySQL(dbHost, dbPort, dbUser, dbPass, dbName string, maxIdle, maxConn int) (*sql.DB, error)

ConnMySQL - create connection database mysql

func ConnMySQLORM

func ConnMySQLORM(dbHost, dbPort, dbUser, dbPass, dbName string, maxIdle, maxConn int) (*gorm.DB, error)

ConnMySQLORM - create connection ORM database mysql

Types

This section is empty.

Jump to

Keyboard shortcuts

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