#[non_exhaustive]pub enum DocError {
FileReadError(Error),
CommentError(CommentError),
SqlParserError(ParserError),
InvalidObjectName {
message: String,
line: u64,
column: u64,
},
TableNotFound {
name: String,
},
ColumnNotFound {
name: String,
},
DuplicateTablesFound {
tables: Vec<TableDoc>,
},
DuplicateColumnsFound {
columns: Vec<ColumnDoc>,
},
TableWithSchemaNotFound {
name: String,
schema: String,
},
}Expand description
Errors that can occur while discovering, parsing, or documenting SQL files.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FileReadError(Error)
Wrapper for standard std::io::Error
CommentError(CommentError)
Wrapper for CommentError
SqlParserError(ParserError)
Wrapper for ParserError
InvalidObjectName
Indicates an invalid or unexpected object name in the sqlparser::ast::Statement
Fields
message: StringThe message to accompany the invalid sqlparser::ast::ObjectName
line: u64The line number for the invalid sqlparser::ast::ObjectName
column: u64The column number for the invalid sqlparser::ast::ObjectName
TableNotFound
Table not found when searching crate::SqlDoc
ColumnNotFound
Column not found when searching crate::docs::TableDoc
DuplicateTablesFound
Duplicate tables with same name were found when searching crate::SqlDoc
DuplicateColumnsFound
Duplicate columns with same name were found when searching a single TableDoc
Fields
columns: Vec<ColumnDoc>Vec of the crate::docs::ColumnDoc for each duplicate table found
TableWithSchemaNotFound
Could not find table with schema