mysql

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultProtocol = "tcp"
)

Variables

This section is empty.

Functions

func DSNToOptions

func DSNToOptions(dsn string) (Option, Option, Option)

func ToConnectionString

func ToConnectionString(opts ...interface{}) (string, error)

Types

type Option

type Option func(*options)

func AllowNativePasswords

func AllowNativePasswords(allow bool) Option

func Connector

func Connector(protocol string, address string, port string) Option

func Database

func Database(name string) Option

func EnableTLS added in v1.0.4

func EnableTLS(config *tls.Config) Option

func Location added in v1.0.2

func Location(location string) Option

func UserInfo

func UserInfo(username, password string) Option

Jump to

Keyboard shortcuts

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