mysql

package
v0.0.0-...-64f1c5a Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterpolateConfig

type InterpolateConfig struct {
	Location *time.Location
	// http://dev.mysql.com/doc/internals/en/status-flags.html
	NoBackslashEscapes bool
}

InterpolateConfig provides configuration for it's Interpolate method.

func (*InterpolateConfig) Interpolate

func (x *InterpolateConfig) Interpolate(query string, args ...driver.Value) (string, error)

Interpolate is presumably like mysql_real_escape_string, and has been copied from go-sql-driver/mysql. WARNING see https://stackoverflow.com/a/12118602 for potential vul. https://github.com/go-sql-driver/mysql/blob/ad9fa14acdcf7d0533e7fbe58728f3d216213ade/connection.go#L198

Jump to

Keyboard shortcuts

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