Skip to contents

Reads course definitions from the courses table.

Usage

get_courses(con, course_id = NULL)

Arguments

con

A DBI connection.

course_id

Optional course identifier.

Value

A tibble of registered courses.

Examples

db_path <- tempfile(fileext = ".sqlite")
con <- init_tracking_db(db_path, overwrite = TRUE)
register_courses(con, "stat101")
#> # A tibble: 1 × 4
#>   course_id course_label semester created_at          
#>   <chr>     <chr>        <chr>    <chr>               
#> 1 stat101   stat101      NA       2026-06-24T12:25:15Z
get_courses(con, course_id = "stat101")
#> # A tibble: 1 × 4
#>   course_id course_label semester created_at          
#>   <chr>     <chr>        <chr>    <chr>               
#> 1 stat101   stat101      NA       2026-06-24T12:25:15Z
DBI::dbDisconnect(con)