Versions in this module Expand all Collapse all v1 v1.6.0 Dec 11, 2025 Changes in this version + type Finding struct + Column int + Description string + Line int + Pattern PatternType + Risk string + SQL string + Severity Severity + Suggestion string + type PatternType string + const PatternBooleanBased + const PatternComment + const PatternDangerousFunc + const PatternOutOfBand + const PatternStackedQuery + const PatternTautology + const PatternTimeBased + const PatternUnionBased + type ScanResult struct + CriticalCount int + Findings []Finding + HighCount int + LowCount int + MediumCount int + TotalCount int + func (r *ScanResult) HasCritical() bool + func (r *ScanResult) HasHighOrAbove() bool + func (r *ScanResult) IsClean() bool + type Scanner struct + MinSeverity Severity + func NewScanner() *Scanner + func NewScannerWithSeverity(minSeverity Severity) (*Scanner, error) + func (s *Scanner) Scan(tree *ast.AST) *ScanResult + func (s *Scanner) ScanSQL(sql string) *ScanResult + type Severity string + const SeverityCritical + const SeverityHigh + const SeverityLow + const SeverityMedium