Trait rorm_sql::delete::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.

Implementors§

source§

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