Structs§
- Automatic
Completion Requirements - Course
Module - Based on CourseModulesSchema but completion_policy parsed and addded (and some not needeed fields removed).
- Course
Module Credit Registration Config - Per-module credit-registration configuration: the rollout switch and the module’s own fields
merged with its
course_module_suotar_configurationsrow. Every field of that row is optional here because a module with no configuration row is a valid, unconfigured module. - Course
Modules 🔒Schema - The subset of
course_modulescolumnsCourseModuleis built from; the credit-registration ones are read throughCourseModuleCreditRegistrationConfig, hence noSELECT *here. - Modified
Module - Module
Size Counts - How many chapters and exercises a course module contains. Used for deciding whether the module is small enough to be exempt from the minimum cheater threshold.
- Module
Updates - NewCourse
Module - NewModule
Enums§
Functions§
- delete
- get_
all_ suotar_ enabled - Every module opted in to credit registration via Suotar, paused ones included.
- get_
all_ uh_ course_ codes_ for_ open_ university - get_
by_ course_ id - get_
by_ course_ id_ as_ map - Gets course modules for the given course as a map, indexed by the
idfield. - get_
by_ course_ id_ only_ with_ open_ chapters - get_
by_ course_ ids - Batched
get_by_course_id: modules for many courses in one query, to group in memory instead of one query per course. - get_
by_ exercise_ id - Gets course module where the given exercise belongs to. This will result in an error in the case of an exam exercise.
- get_
by_ id - get_
by_ ids - get_
chapter_ and_ exercise_ counts - get_
course_ module_ id_ by_ chapter - get_
credit_ registration_ config - get_
default_ by_ course_ id - get_
ids_ by_ course_ slug_ or_ uh_ course_ code - Gets all course modules with a matching
uh_course_codeor courseslug. - insert
- rename
- update
- update_
automatic_ completion_ status - update_
certification_ enabled - update_
enable_ registering_ completion_ to_ uh_ open_ university - update_
modules - update_
uh_ course_ code - update_
with_ order_ number