Documentation
¶
Overview ¶
This file is responsible for providing various useful database functions.
Package uploader writes parsed datasets and derived aggregations into MongoDB collections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UploadAcademicCalendars ¶
func UploadAcademicCalendars(inDir string)
func UploadData ¶
UploadData uploads parsed JSON documents to a MongoDB collection. Make sure the file name matches the collection name (e.g., courses.json for the courses collection).
func UploadEvents ¶
func UploadEvents(inDir string)
UploadEvents loads event JSON files and replaces the corresponding MongoDB collections.
func UploadMapLocations ¶
func UploadMapLocations(inDir string)
UploadMapLocations replaces the map locations collection with the generated map JSON.
Types ¶
type DBSingleton ¶
type DBSingleton struct {
// contains filtered or unexported fields
}
TODO: Replace instances and check
Source Files
¶
Click to show internal directories.
Click to hide internal directories.