pub enum QueryError {
SyntaxError {
position: usize,
message: String,
},
ExecutionFailed(String),
Timeout {
timeout_ms: u64,
},
InvalidState(String),
ParameterBindingError {
index: usize,
message: String,
},
NoResultSet(String),
TransactionError(String),
SqlInjectionDetected,
StatementClosed,
UnexpectedResultSet,
}Expand description
Errors related to query execution.
Variants§
SyntaxError
SQL syntax error
ExecutionFailed(String)
Query execution failed
Timeout
Query timeout
InvalidState(String)
Invalid query state
ParameterBindingError
Parameter binding error
NoResultSet(String)
Result set not available
TransactionError(String)
Transaction error
SqlInjectionDetected
SQL injection attempt detected
StatementClosed
Prepared statement has been closed
UnexpectedResultSet
Unexpected result set when row count was expected
Implementations§
Source§impl QueryError
impl QueryError
Sourcepub fn to_adbc_code(&self) -> AdbcErrorCode
pub fn to_adbc_code(&self) -> AdbcErrorCode
Map to ADBC error code.
Trait Implementations§
Source§impl Debug for QueryError
impl Debug for QueryError
Source§impl Display for QueryError
impl Display for QueryError
Source§impl Error for QueryError
impl Error for QueryError
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<QueryError> for ExasolError
impl From<QueryError> for ExasolError
Source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryError
impl RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnsafeUnpin for QueryError
impl UnwindSafe for QueryError
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