Help us shape the future of Go! Take the 2026 Go Developer Survey

rows

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type TelemetryCallbacks added in v1.11.0

type TelemetryCallbacks struct {
	// OnChunkFetched is called after each result page fetch with chunk-level stats.
	OnChunkFetched func(chunkCount int, bytesDownloaded int64, chunkIndex int, chunkLatencyMs int64, totalChunksPresent int32)
	// OnClose is called from rows.Close() after all rows have been consumed.
	// iterErr is the first error from Next()/fetchResultPage (nil if iteration succeeded).
	// closeErr is the error from the CloseOperation RPC (nil if close succeeded).
	OnClose func(latencyMs int64, chunkCount int, iterErr error, closeErr error)
	// OnCloudFetchFile is called per S3 file download for CloudFetch result sets.
	OnCloudFetchFile func(downloadMs int64)
}

TelemetryCallbacks bundles the optional telemetry hooks passed into NewRows. Pass nil when telemetry is not active; individual fields may also be nil.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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