Function analyze_order_by
Source pub fn analyze_order_by(stmt: &Statement) -> OrderAnalysis
Expand description
Analyzes a SQL statement for ORDER BY patterns.
Extracts ORDER BY columns, detects LIMIT, checks for windowed context,
and classifies the pattern for streaming safety.
§Arguments
stmt - The SQL statement to analyze
§Returns
An OrderAnalysis with the classified pattern.