pub async fn batch_insert<S: StorageEngine>(
engine: &LiteQueryEngine<S>,
collection: &str,
documents: &[(String, Vec<u8>)],
if_absent: bool,
) -> Result<QueryResult, LiteError>Expand description
BatchInsert: insert N documents in a single transaction.
Each row is judged as a point insert judges it. A key already stored, or
one the batch names twice, refuses the whole batch, and nothing is
written. With if_absent (ON CONFLICT DO NOTHING) such a row is
skipped instead.