sqlutil

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: AGPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorDatabase added in v0.29.0

func MonitorDatabase(
	ctx context.Context,
	conf *config.Config,
	statsFactory stats.Stats,
	db *sql.DB,
	identifier string,
)

MonitorDatabase collects database connection pool metrics at regular intervals synchronously until the context is canceled.

func PrintRowsToTable

func PrintRowsToTable(rows *sql.Rows, output io.Writer) error

PrintRowsToTable prints the rows to the output in a table format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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