Help us shape the future of Go! Take the 2026 Go Developer Survey

mysql

package
v0.88.5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DialectMySQL drivers.Dialect = func() drivers.Dialect {
	d := &dialect{}
	d.BaseDialect = drivers.NewBaseDialect(drivers.DialectNameMySQL, EscapeIdentifier, EscapeIdentifier)
	return d
}()

Functions

func EscapeIdentifier added in v0.86.2

func EscapeIdentifier(ident string) string

Types

type ConfigProperties

type ConfigProperties struct {
	DSN        string `mapstructure:"dsn"`
	Host       string `mapstructure:"host"`
	Port       int    `mapstructure:"port"`
	Database   string `mapstructure:"database"`
	User       string `mapstructure:"user"`
	Password   string `mapstructure:"password"`
	SSLMode    string `mapstructure:"ssl-mode"`
	LogQueries bool   `mapstructure:"log_queries"`
}

func (*ConfigProperties) ResolveDSN added in v0.78.0

func (c *ConfigProperties) ResolveDSN() (string, error)

Jump to

Keyboard shortcuts

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