Documentation
¶
Index ¶
- func Cost() func() time.Duration
- func DefaultInterpolate(q string, args []driver.NamedValue) (string, []driver.NamedValue)
- func Interpolate(q string, args []driver.NamedValue, loc *time.Location) (string, error)
- func NewPrinter(q string, args []driver.NamedValue) fmt.Stringer
- func OrderedInterpolator(q string, args []driver.NamedValue) (string, []driver.NamedValue)
- func WithDsnParser(parser func(string) (string, error)) func(*options)
- func WithErrorLeveler(level func(error) int) func(*options)
- func WithInterpolator(replacer func(string, []driver.NamedValue) (string, []driver.NamedValue)) func(*options)
- func Wrap(d driver.Driver, name string, opts ...DriverOptionApplier) driver.DriverContext
- type DriverOptionApplier
- type ExprPrinter
- type Interpolator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultInterpolate ¶
func DefaultInterpolate(q string, args []driver.NamedValue) (string, []driver.NamedValue)
func Interpolate ¶
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 WithErrorLeveler ¶
func WithInterpolator ¶
func WithInterpolator(replacer func(string, []driver.NamedValue) (string, []driver.NamedValue)) func(*options)
func Wrap ¶
func Wrap(d driver.Driver, name string, opts ...DriverOptionApplier) driver.DriverContext
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)
Click to show internal directories.
Click to hide internal directories.