async fn session_execute_batch<T: SerializeRow + Debug, Q: Display>(
session: Arc<Session>,
query_map: &SkipMap<u16, Arc<Batch>>,
cfg: Arc<EnvVars>,
query: Q,
values: Vec<T>,
) -> Result<Vec<QueryResult>>
Expand description
Execute a Batch query with the given parameters.
Values should be a Vec of values which implement SerializeRow
and they MUST be
the same, and must match the query being executed.
This will divide the batch into optimal sized chunks and execute them until all values have been executed or the first error is encountered.