Trait Delete

Source
pub trait Delete<'until_build, 'post_query> {
    // Required methods
    fn where_clause(
        self,
        condition: &'until_build Condition<'post_query>,
    ) -> Self;
    fn build(self) -> (String, Vec<Value<'post_query>>);
}
Expand description

Trait representing a delete builder.

Required Methods§

Source

fn where_clause(self, condition: &'until_build Condition<'post_query>) -> Self

Adds the a Condition to the delete query.

Parameter:

  • condition: Condition to apply to the delete operation
Source

fn build(self) -> (String, Vec<Value<'post_query>>)

Build the delete operation.

Returns:

  • SQL query string
  • List of Value parameters to bind to the query.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'until_build, 'post_query> Delete<'until_build, 'post_query> for DeleteImpl<'until_build, 'post_query>