pub enum NativeExecError {
Unsupported {
reason: String,
},
UnknownTable {
table: String,
},
UnknownField {
table: Option<String>,
field: String,
},
AmbiguousField {
field: String,
},
BadExpression {
source: String,
detail: String,
},
TooManyRows {
rows: usize,
limit: usize,
},
}Expand description
Why a native query could not execute; every variant carries a precise, locatable detail.
Variants§
Unsupported
A decoded construct is outside the executable dialect.
UnknownTable
A FROM entry names no source table.
UnknownField
A field reference names no column of its table.
Fields
AmbiguousField
A bare field name exists in more than one source table.
BadExpression
An expression does not parse or fails to evaluate.
TooManyRows
The join would materialize more rows than the guard allows.
Trait Implementations§
Source§impl Clone for NativeExecError
impl Clone for NativeExecError
Source§impl Debug for NativeExecError
impl Debug for NativeExecError
Source§impl Display for NativeExecError
impl Display for NativeExecError
impl Eq for NativeExecError
Source§impl Error for NativeExecError
impl Error for NativeExecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for NativeExecError
impl PartialEq for NativeExecError
impl StructuralPartialEq for NativeExecError
Auto Trait Implementations§
impl Forget for NativeExecError
impl Freeze for NativeExecError
impl Move for NativeExecError
impl RefUnwindSafe for NativeExecError
impl Send for NativeExecError
impl Sync for NativeExecError
impl Unpin for NativeExecError
impl UnsafeUnpin for NativeExecError
impl UnwindSafe for NativeExecError
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