pub struct ParameterizedAggregationSql {
pub sql: String,
pub params: Vec<Value>,
}Expand description
Aggregate query with bind parameters instead of escaped string literals.
Produced by AggregationSqlGenerator::generate_parameterized. Pass sql
and params directly to crate::db::DatabaseAdapter::execute_parameterized_aggregate.
Fields§
§sql: StringSQL with $N (PostgreSQL), ? (MySQL / SQLite), or @P1 (SQL Server) placeholders.
params: Vec<Value>Bind parameters in placeholder order.
Trait Implementations§
Source§impl Clone for ParameterizedAggregationSql
impl Clone for ParameterizedAggregationSql
Source§fn clone(&self) -> ParameterizedAggregationSql
fn clone(&self) -> ParameterizedAggregationSql
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParameterizedAggregationSql
impl RefUnwindSafe for ParameterizedAggregationSql
impl Send for ParameterizedAggregationSql
impl Sync for ParameterizedAggregationSql
impl Unpin for ParameterizedAggregationSql
impl UnsafeUnpin for ParameterizedAggregationSql
impl UnwindSafe for ParameterizedAggregationSql
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more