Module error

Module error 

Source
Expand description

Error types for SQL parsing and analysis.

§Error Handling Strategy

This crate uses two complementary error handling patterns:

  • ParseError: Fatal errors that prevent SQL parsing. Returned as Result<T, ParseError> and stop processing of the affected statement.

  • crate::types::Issue: Non-fatal warnings and errors collected during analysis (e.g., unresolved table references, missing columns). These are accumulated in a vector and returned alongside successful analysis results, allowing partial lineage extraction even when some references cannot be resolved.

This separation allows the analyzer to be resilient: parsing must succeed, but analysis can continue with incomplete information while reporting issues.

Structs§

ParseError
Error encountered during SQL parsing.
Position
Position information for a parse error.

Enums§

ParseErrorKind
Category of parse error for programmatic handling.