AnyValue

Trait AnyValue 

Source
pub trait AnyValue: Send + Sync {
    // Required method
    fn bind(&self, builder: &mut QueryBuilder<'static, Driver>);
}
Expand description

Trait representing a value that can be bound into a SQL query.

This trait abstracts over different types that implement BindValue and allows them to be stored in a type-erased form (Box<dyn AnyValue>).

Required Methods§

Source

fn bind(&self, builder: &mut QueryBuilder<'static, Driver>)

Bind this value into the given QueryBuilder.

Implementors§

Source§

impl<T> AnyValue for T
where T: BindValue + Clone + Debug + 'static,