Commit 0f5b9e2d authored by Alan Marchiori's avatar Alan Marchiori
Browse files

added how to import and export grade data

parent 8234ef48
......@@ -92,6 +92,17 @@ lt db add new_instructor --role dbOwner
Instructors (dbOwners) can **show** and **rm** database users as well.
## Importing and exporting grade data
DbOwners can access grade data directly using the **query** and **insert** commands. This can be useful for example to move students between sections. The commands below exports all grades for user *amm042* in course *CSCI206-S21-99* into the file *docs* as a JSON document. You could manually edit this file if needed but the **insert** command can selectively modify the path to replace the old course name with *CSCI206-S20-61*. You can also modify the username if needed (see the --help comments).
$lt db query amm042 --course CSCI206-S21-99 > docs
$lt db insert --course CSCI206-S20-61 < docs
Note, this doesn't delete the grade documents from the old course/username for safety.
## Global configuration
The tool is meant to be flexible with most configuration stored at the COURSE level. However, the file `config/` contains all globally defined values.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment