Skip to main content

Module registration

Module registration 

Source
Expand description

The ledger row itself: creating it and reading it back whole.

Structs§

CreditRegistration
NewCreditRegistration

Functions§

exists_for_user_and_course
Whether this account has any attempt, live or replaced, on this course.
get_by_course_id
get_by_id
get_by_ids_for_update
The named rows, locked until the caller’s transaction ends. Must be called inside one.
get_by_user_id
insert
Creates a ledger row at pending with a created event.
is_waiting_for_enrolment
Whether a row is waiting for an enrolment: parked without a usable one, check schedule started or not, or on its first check or a retry on its way there. Only such a row is moved by a visit or a check request, and kept waiting through a lookup that fails in transit.