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

loggingdriver

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cost

func Cost() func() time.Duration

func DefaultInterpolate

func DefaultInterpolate(q string, args []driver.NamedValue) (string, []driver.NamedValue)

func Interpolate

func Interpolate(q string, args []driver.NamedValue, loc *time.Location) (string, error)

func NewPrinter

func NewPrinter(q string, args []driver.NamedValue) fmt.Stringer

func OrderedInterpolator

func OrderedInterpolator(q string, args []driver.NamedValue) (string, []driver.NamedValue)

func WithDsnParser

func WithDsnParser(parser func(string) (string, error)) func(*options)

func WithErrorLeveler

func WithErrorLeveler(level func(error) int) func(*options)

func WithInterpolator

func WithInterpolator(replacer func(string, []driver.NamedValue) (string, []driver.NamedValue)) func(*options)

func Wrap

Types

type DriverOptionApplier

type DriverOptionApplier func(*options)

type ExprPrinter

type ExprPrinter struct {
	// contains filtered or unexported fields
}

func (*ExprPrinter) String

func (p *ExprPrinter) String() string

type Interpolator

type Interpolator func(string, []driver.NamedValue) (string, []driver.NamedValue)

Jump to

Keyboard shortcuts

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