Trait HavingClauses

Source
pub trait HavingClauses {
    // Required methods
    fn having(&mut self, column: &str, operator: &str, value: Value);
    fn having_raw(&mut self, sql: &str, binds: Option<Vec<Value>>);
    fn having_between(&mut self, column: &str, values: [Value; 2]);
    fn having_in(&mut self, column: &str, values: Vec<Value>);
    fn having_not_in(&mut self, column: &str, values: Vec<Value>);
}
Expand description

Trait for HAVING clause operations

Required Methods§

Source

fn having(&mut self, column: &str, operator: &str, value: Value)

Add a HAVING condition

Source

fn having_raw(&mut self, sql: &str, binds: Option<Vec<Value>>)

Add a HAVING condition with raw SQL

Source

fn having_between(&mut self, column: &str, values: [Value; 2])

Add a HAVING BETWEEN condition

Source

fn having_in(&mut self, column: &str, values: Vec<Value>)

Add a HAVING IN condition

Source

fn having_not_in(&mut self, column: &str, values: Vec<Value>)

Add a HAVING NOT IN condition

Implementors§