pub(crate) fn put(db: &Db, enrolment: &Enrolment) -> Result<()>
Write one device’s enrolment, replacing any prior row with the same id.