Create a mapping of media type to SQL constants #2678
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
🟨 priority: medium
Not blocking but should be addressed soon
Milestone
Current Situation
See comments here and here.
In many of our SQL tasks we have code that looks like this:
Suggested Improvement
We should define a mapping of media types to each of the constants needed in SQL operations (table and view names, function names, columns, etc). We should then get the values for these constants from the dictionary. Tests should also be updated.
Benefit
Code clean-up, but this was also make it easier to add additional media types in the future.
Additional context
The text was updated successfully, but these errors were encountered: