pub trait BuildCondition<'a>: 'a {
    fn build_to_writer(
        &self,
        writer: &mut impl Write,
        dialect: DBImpl,
        lookup: &mut Vec<Value<'a>>
    ) -> Result<(), Error>; fn build(&self, dialect: DBImpl, lookup: &mut Vec<Value<'a>>) -> String { ... } }
Expand description

Trait implementing constructing sql queries from a condition tree.

This trait auto implements build which has a simpler api from the more complex build_to_writer.

Required Methods

This method is used to convert a condition to SQL without allocating a dedicated string.

Provided Methods

This method is used to convert a condition to SQL.

Implementors