Skip to main content

register

Function register 

Source
pub fn register(
    conn: &Connection,
    pepper: &[u8; 32],
    values: &[String],
    mode: Normalise,
    meta: &BatchMeta<'_>,
) -> Result<Vec<RegisterOutcome>, String>
Expand description

Registers every value as one batch. Each is an INSERT that fails on the primary key — never a read-then-write — so two concurrent registrations of one value cannot both succeed; the loser is reported as a conflict, not an error.