pub enum ReadOnlyError {
NotReadOnly {
statement_type: String,
},
ParseError(String),
ExecutionError(ExecutorError),
}Expand description
Error type for read-only query operations.
Variants§
NotReadOnly
The query is not a read-only SELECT statement
ParseError(String)
SQL parsing failed
ExecutionError(ExecutorError)
Execution failed
Trait Implementations§
Source§impl Debug for ReadOnlyError
impl Debug for ReadOnlyError
Source§impl Display for ReadOnlyError
impl Display for ReadOnlyError
Source§impl Error for ReadOnlyError
impl Error for ReadOnlyError
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 From<ExecutorError> for ReadOnlyError
impl From<ExecutorError> for ReadOnlyError
Source§fn from(e: ExecutorError) -> Self
fn from(e: ExecutorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadOnlyError
impl RefUnwindSafe for ReadOnlyError
impl Send for ReadOnlyError
impl Sync for ReadOnlyError
impl Unpin for ReadOnlyError
impl UnwindSafe for ReadOnlyError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more