Expand description
The ledger row itself: creating it and reading it back whole.
Structs§
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
pendingwith acreatedevent. - 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.