Expand description
Always update the user_exercise_state table though this module
Modulesยง
- data_
loader ๐ - state_
deriver ๐ - validation ๐
Structsยง
- User
Exercise State Update Already Loaded Required Data - Same as
UserExerciseStateUpdateRequiredData
but public and everything is optional. Can be used to pass some already loaded dependencies to the update function. - User
Exercise State Update Already Loaded Required Data Peer Review Information - Same as
UserExerciseStateUpdateRequiredDataPeerReviewInformation
but public and everything is optional. Can be used to pass some already loaded dependencies to the update function. - User
Exercise State Update Required Data - Visible only in the current module (and submodules) to prevent misuse.
- User
Exercise State Update Required Data Peer Review Information - Visible only in the current module (and submodules) to prevent misuse.
Functionsยง
- update_
user_ exercise_ state - Loads all required data and updates user_exercise_state. Also creates completions if needed.
- update_
user_ exercise_ state_ with_ some_ already_ loaded_ data - 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.