Skip to main content

ParamVec

Type Alias ParamVec 

Source
pub type ParamVec = SmallVec<[Value; 8]>;
Expand description

Positional SQL parameters shared by API adapters and the executor.

The inline capacity is part of the existing allocation contract: ordinary queries with at most eight parameters do not require a heap allocation.

Aliased Type§

pub struct ParamVec { /* private fields */ }

Trait Implementations§

Source§

impl Params for ParamVec

Source§

fn into_params(self) -> ParamVec

Convert into a ParamVec of Values. Uses SmallVec to avoid heap allocation for ≤4 parameters.