MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / NewSQLAnalyzer

Function NewSQLAnalyzer

cmd/gosqlx/cmd/sql_analyzer.go:48–54  ·  view source on GitHub ↗

NewSQLAnalyzer creates a new AST-based SQL analyzer

()

Source from the content-addressed store, hash-verified

46
47// NewSQLAnalyzer creates a new AST-based SQL analyzer
48func NewSQLAnalyzer() *SQLAnalyzer {
49 return &SQLAnalyzer{
50 Issues: make([]AnalysisIssue, 0),
51 SecurityScore: 100,
52 PerformanceScore: 100,
53 }
54}
55
56// Analyze performs comprehensive AST-based analysis
57func (a *SQLAnalyzer) Analyze(astObj *ast.AST, sqlArgs ...string) (*AnalysisReport, error) {

Calls

no outgoing calls