logger

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryTracer

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

QueryTracer - traces Query, QueryRow, and Exec.

func NewQueryTracer

func NewQueryTracer(host, port, database string) *QueryTracer

NewQueryTracer - создаёт объект QueryTracer.

func (*QueryTracer) TraceQueryEnd

func (t *QueryTracer) TraceQueryEnd(_ context.Context, _ *pgx.Conn, _ pgx.TraceQueryEndData)

TraceQueryEnd - вызывается в конце запросов: Query, QueryRow, and Exec.

func (*QueryTracer) TraceQueryStart

func (t *QueryTracer) TraceQueryStart(ctx context.Context, _ *pgx.Conn, data pgx.TraceQueryStartData) context.Context

TraceQueryStart - вызывается в начале запросов: Query, QueryRow, and Exec.

Jump to

Keyboard shortcuts

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