Expand description
Always update the user_exercise_state table though this module
Modulesยง
- data_
loader ๐ - state_
deriver ๐ - validation ๐
Structsยง
- Same as
UserExerciseStateUpdateRequiredData
but public and everything is optional. Can be used to pass some already loaded dependencies to the update function. - Same as
UserExerciseStateUpdateRequiredDataPeerReviewInformation
but public and everything is optional. Can be used to pass some already loaded dependencies to the update function. - Visible only in the current module (and submodules) to prevent misuse.
- Visible only in the current module (and submodules) to prevent misuse.
Functionsยง
- Loads all required data and updates user_exercise_state. Also creates completions if needed.
- Allows you to pass some data that
update_user_exercise_state
fetches to avoid repeating SQL queries for performance. Note that the caller must be careful that it passes correct data to the function. A good rule of thumb is that this function expects unmodified data directly from the database.