Versions in this module Expand all Collapse all v0 v0.10.0 May 4, 2026 Changes in this version type CommentStripper + RedactForMacros func(sql string) string v0.9.1 Feb 20, 2026 v0.9.0 Feb 13, 2026 Changes in this version + type CommentStripper interface + Strip func(sql string) (stripped string, lineMap []LineMapping) + func NewCommentStripper() CommentStripper + type LineMapping struct + OriginalCol int + OriginalLine int + StrippedLine int + type MacroCall struct + Callback string + Column int + EndPos int + Line int + Name string + Pattern string + StartPos int + type MacroDetector interface + Detect func(sql string) []MacroCall + func NewMacroDetector() MacroDetector + type Pipeline struct + func NewPipeline() *Pipeline + func (p *Pipeline) Process(ctx context.Context, conn *pgxpool.Conn, sql string) (*PreprocessResult, error) + type PreprocessResult struct + ExpandedSQL string + MacroCount int + SourceMap *sourcemap.SourceMap