Skip to main content

insert

Function insert 

Source
pub async fn insert(
    conn: &mut PgConnection,
    pkey_policy: PKeyPolicy<Uuid>,
    exercise_slide_submission_id: Uuid,
    exercise_slide_id: Uuid,
    exercise_task_id: Uuid,
    answer: &SubmittedAnswer,
) -> ModelResult<Uuid>
Expand description

Records a task submission and, for a file answer, the files that are the answer.

Both land in one transaction: a file answer whose file rows were rolled back would be an answer with no content at all.