mysql_connect

package
v0.0.0-...-c600a59 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnectAndCnfFile

func GetConnectAndCnfFile(conn Params, sectionName string) (*sqlx.DB, *ini.File, error)

Types

type Params

type Params struct {
	AuthFile string // Path to auth file
	User     string // Username
	Passwd   string // Password (requires User)
	Host     string // Network host
	Port     string // Network port
	Socket   string // Socket path
	SSLCA    string
	SSLCert  string
	SSLKey   string
}

Jump to

Keyboard shortcuts

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