sgmysql

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(cfg *MySQLCfg) (*gorm.DB, error)

Types

type MySQLCfg

type MySQLCfg struct {
	URL     string `json:"url"`
	Port    string `json:"port"`
	User    string `json:"user"`
	Pwd     string `json:"pwd"`
	DbName  string `json:"dbName"`
	Charset string `json:"charset"`
}

func ReadCfg

func ReadCfg(filename string) (*MySQLCfg, error)

Jump to

Keyboard shortcuts

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