isudb

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBMetricsSetup

func DBMetricsSetup[T interface {
	Ping() error
	Close() error
	Query(query string, args ...any) (*sql.Rows, error)
	SetConnMaxIdleTime(d time.Duration)
	SetConnMaxLifetime(d time.Duration)
	SetMaxIdleConns(n int)
	SetMaxOpenConns(n int)
	Stats() sql.DBStats
}](fn func(string, string) (T, error)) func(string, string) (T, error)

func SetFixInterpolateParams

func SetFixInterpolateParams(enable bool)

func SetQueryTrace added in v1.17.0

func SetQueryTrace(enable bool)

func SetRetry

func SetRetry(enable bool)

Types

This section is empty.

Directories

Path Synopsis
internal
generate
Code generated by iwrapper; DO NOT EDIT.
Code generated by iwrapper; DO NOT EDIT.

Jump to

Keyboard shortcuts

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