pub enum SemanticErrorKind {
UnresolvedColumn {
table: Option<String>,
column: String,
},
AmbiguousColumn {
column: String,
candidates: Vec<String>,
},
UnresolvedTable {
name: String,
},
DuplicateAlias {
alias: String,
},
FunctionArityMismatch {
function: String,
expected: FunctionArity,
actual: usize,
},
NoTablesSpecifiedForStar,
ImplicitTypeCoercion {
from: TypeAffinity,
to: TypeAffinity,
context: String,
},
}Expand description
Kinds of semantic errors.
Variants§
UnresolvedColumn
Column reference could not be resolved.
AmbiguousColumn
Column reference is ambiguous (exists in multiple tables).
UnresolvedTable
Table or alias not found.
DuplicateAlias
Duplicate alias in the same scope.
FunctionArityMismatch
Function called with wrong number of arguments.
NoTablesSpecifiedForStar
SELECT * used without any tables in scope.
ImplicitTypeCoercion
Type coercion warning (not fatal).
Trait Implementations§
Source§impl Clone for SemanticErrorKind
impl Clone for SemanticErrorKind
Source§fn clone(&self) -> SemanticErrorKind
fn clone(&self) -> SemanticErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticErrorKind
impl Debug for SemanticErrorKind
Source§impl PartialEq for SemanticErrorKind
impl PartialEq for SemanticErrorKind
impl Eq for SemanticErrorKind
impl StructuralPartialEq for SemanticErrorKind
Auto Trait Implementations§
impl Freeze for SemanticErrorKind
impl RefUnwindSafe for SemanticErrorKind
impl Send for SemanticErrorKind
impl Sync for SemanticErrorKind
impl Unpin for SemanticErrorKind
impl UnsafeUnpin for SemanticErrorKind
impl UnwindSafe for SemanticErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more