pub enum SqlError {
Syntax(String),
Unsupported(String),
NotTranslated(&'static str, String),
Semantics(String),
NotPushed {
word: Refusal,
mismatch: bool,
reason: String,
},
}Expand description
An error translating a SQL statement.
Variants§
Syntax(String)
Unsupported(String)
NotTranslated(&'static str, String)
A construct of SQL with no Quarb translation: the diagnostic
code of the reason (JOIN_NOT_TRANSLATED; ruling 2026-11-17,
one word per reason) and the reason.
Semantics(String)
SQL can spell the construct, but with provably different semantics (NULL propagation, collation, coercion) — the refusal names the divergence, not a missing feature.
NotPushed
A part of a Quarb query the exporter leaves to the engine:
the word a planner’s refusal is told under, whether SQL
could spell the part with other semantics (mismatch) or
has no form for it, and the reason.
Implementations§
Trait Implementations§
Source§impl Error for SqlError
impl Error for SqlError
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()
Auto Trait Implementations§
impl Forget for SqlError
impl Freeze for SqlError
impl Move for SqlError
impl RefUnwindSafe for SqlError
impl Send for SqlError
impl Sync for SqlError
impl Unpin for SqlError
impl UnsafeUnpin for SqlError
impl UnwindSafe for SqlError
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