pub enum SqlValidationError {
SyntaxError(String),
UnbalancedParentheses(String),
UnclosedString(usize),
MissingKeyword(String),
ParameterCountMismatch {
expected: usize,
got: usize,
},
InvalidTableName(String),
EmptySelectColumns,
EmptyInsertData,
EmptyUpdateData,
DeleteWithoutWhere,
InvalidIdentifier(String),
InjectionDetected(String),
}Expand description
SQL validation errors
Variants§
SyntaxError(String)
UnbalancedParentheses(String)
UnclosedString(usize)
MissingKeyword(String)
ParameterCountMismatch
InvalidTableName(String)
EmptySelectColumns
EmptyInsertData
EmptyUpdateData
DeleteWithoutWhere
InvalidIdentifier(String)
InjectionDetected(String)
Trait Implementations§
Source§impl Clone for SqlValidationError
impl Clone for SqlValidationError
Source§fn clone(&self) -> SqlValidationError
fn clone(&self) -> SqlValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SqlValidationError
impl Debug for SqlValidationError
Source§impl Display for SqlValidationError
impl Display for SqlValidationError
Source§impl Error for SqlValidationError
impl Error for SqlValidationError
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 SqlValidationError
impl PartialEq for SqlValidationError
impl StructuralPartialEq for SqlValidationError
Auto Trait Implementations§
impl Freeze for SqlValidationError
impl RefUnwindSafe for SqlValidationError
impl Send for SqlValidationError
impl Sync for SqlValidationError
impl Unpin for SqlValidationError
impl UnsafeUnpin for SqlValidationError
impl UnwindSafe for SqlValidationError
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