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

statementmeta

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package statementmeta carries compiler-owned diagnostics across execution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Active

func Active(ctx context.Context) bool

func CallSite

func CallSite(ctx context.Context) string

func CaptureSite

func CaptureSite(ctx context.Context) context.Context

CaptureSite preserves the caller across a framework-owned goroutine boundary. Immediate external frames still take precedence when statements execute.

func Enable

func Enable(ctx context.Context) context.Context

func Shape

func Shape(ctx context.Context, sql string) string

func With

func With(ctx context.Context, sql, shape string) context.Context

With binds a compiler-owned shape to the exact statement, preventing a borrowed executor context from attributing different raw SQL to a trusted shape.

Types

This section is empty.

Jump to

Keyboard shortcuts

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