loggingdriver

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 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