pub struct DeleteWrapper {
pub wrapper: Wrapper,
/* private fields */
}Expand description
SQL builder for DELETE statements
Fields§
§wrapper: WrapperWHERE conditions wrapper (public for direct manipulation)
Implementations§
Source§impl DeleteWrapper
impl DeleteWrapper
Sourcepub fn try_into_sql(self) -> Result<(String, Vec<Value>), SswError>
pub fn try_into_sql(self) -> Result<(String, Vec<Value>), SswError>
Convert DeleteWrapper into final DELETE SQL and parameters
Sourcepub async fn try_delete(self, rb: &RBatis) -> Result<ExecResult, SswError>
pub async fn try_delete(self, rb: &RBatis) -> Result<ExecResult, SswError>
Execute DELETE statement asynchronously
Trait Implementations§
Source§impl Debug for DeleteWrapper
impl Debug for DeleteWrapper
Source§impl Default for DeleteWrapper
impl Default for DeleteWrapper
Source§fn default() -> DeleteWrapper
fn default() -> DeleteWrapper
Returns the “default value” for a type. Read more
Source§impl WrapperTrait for DeleteWrapper
impl WrapperTrait for DeleteWrapper
Source§fn build_like<D: Display>(column: &str, value: D) -> Self
fn build_like<D: Display>(column: &str, value: D) -> Self
column LIKE '%value%'Source§fn build_like_left<D: Display>(column: &str, value: D) -> Self
fn build_like_left<D: Display>(column: &str, value: D) -> Self
column LIKE '%value'Source§fn build_like_right<D: Display>(column: &str, value: D) -> Self
fn build_like_right<D: Display>(column: &str, value: D) -> Self
column LIKE 'value%'Source§fn build_is_null(column: &str) -> Self
fn build_is_null(column: &str) -> Self
column IS NULLSource§fn build_is_not_null(column: &str) -> Self
fn build_is_not_null(column: &str) -> Self
column IS NOT NULLSource§fn build_is_true(column: &str) -> Self
fn build_is_true(column: &str) -> Self
column IS TRUESource§fn build_is_false(column: &str) -> Self
fn build_is_false(column: &str) -> Self
column IS FALSESource§fn build_eq_or_in<V: Into<Value>>(column: &str, values: Vec<V>) -> Self
fn build_eq_or_in<V: Into<Value>>(column: &str, values: Vec<V>) -> Self
Auto-detect EQ or IN (1 value →
=, >1 values → IN)Source§fn build_ne_or_not_in<V: Into<Value>>(column: &str, values: Vec<V>) -> Self
fn build_ne_or_not_in<V: Into<Value>>(column: &str, values: Vec<V>) -> Self
Auto-detect NE or NOT IN (1 value →
!=, >1 values → NOT IN)Source§fn build_between<V: Into<Value>>(column: &str, start: V, end: V) -> Self
fn build_between<V: Into<Value>>(column: &str, start: V, end: V) -> Self
column BETWEEN ? AND ?Source§fn build_not_between<V: Into<Value>>(column: &str, start: V, end: V) -> Self
fn build_not_between<V: Into<Value>>(column: &str, start: V, end: V) -> Self
column NOT BETWEEN ? AND ?Source§fn like_right<D: Display>(self, column: &str, value: D) -> Self
fn like_right<D: Display>(self, column: &str, value: D) -> Self
column LIKE 'value%'Source§fn eq_or_in<V: Into<Value>>(self, column: &str, values: Vec<V>) -> Self
fn eq_or_in<V: Into<Value>>(self, column: &str, values: Vec<V>) -> Self
Auto-detect EQ or IN (1 value →
=, >1 values → IN)Source§fn ne_or_not_in<V: Into<Value>>(self, column: &str, values: Vec<V>) -> Self
fn ne_or_not_in<V: Into<Value>>(self, column: &str, values: Vec<V>) -> Self
Auto-detect NE or NOT IN (1 value →
!=, >1 values → NOT IN)Source§fn between<V: Into<Value>>(self, column: &str, start: V, end: V) -> Self
fn between<V: Into<Value>>(self, column: &str, start: V, end: V) -> Self
column BETWEEN ? AND ?Source§fn not_between<V: Into<Value>>(self, column: &str, start: V, end: V) -> Self
fn not_between<V: Into<Value>>(self, column: &str, start: V, end: V) -> Self
column NOT BETWEEN ? AND ?Source§fn column_is_null(self, column: &str) -> Self
fn column_is_null(self, column: &str) -> Self
column IS NULLSource§fn column_is_not_null(self, column: &str) -> Self
fn column_is_not_null(self, column: &str) -> Self
column IS NOT NULLSource§fn column_is_true(self, column: &str) -> Self
fn column_is_true(self, column: &str) -> Self
column IS TRUESource§fn column_is_false(self, column: &str) -> Self
fn column_is_false(self, column: &str) -> Self
column IS FALSESource§fn and_wrapper(self, other: Wrapper) -> Self
fn and_wrapper(self, other: Wrapper) -> Self
Combine with another Wrapper using AND (adds parentheses) Read more
Source§fn or_wrapper(self, other: Wrapper) -> Self
fn or_wrapper(self, other: Wrapper) -> Self
Combine with another Wrapper using OR (adds parentheses) Read more
Auto Trait Implementations§
impl Freeze for DeleteWrapper
impl RefUnwindSafe for DeleteWrapper
impl Send for DeleteWrapper
impl Sync for DeleteWrapper
impl Unpin for DeleteWrapper
impl UnsafeUnpin for DeleteWrapper
impl UnwindSafe for DeleteWrapper
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