mysql

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Driver = "mysql"
)

Variables

View Source
var (
	ConnectionsPercentPerRequest = 5
	MaxConnectionsPercent        = 90
	IdleConnectionsPercent       = 25
)

Functions

func CheckCollation added in v4.0.2

func CheckCollation(ctx context.Context, db *sql.DB, dbName string) (map[string]string, error)

func FilterDAOErrors

func FilterDAOErrors(err error) (error, bool)

FilterDAOErrors hides sensitive information about the underlying table when we receive MySQLError.

Types

type MySQLDriver

type MySQLDriver struct{}

MySQLDriver is exported to make the driver directly accessible. In general the driver is used via the database/sql package.

func (MySQLDriver) Open

func (d MySQLDriver) Open(dsn string) (driver.Conn, error)

Open new Connection. See https://github.com/go-sql-driver/mysql#dsn-data-source-name for how the DSN string is formatted

Jump to

Keyboard shortcuts

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