Accessing a coverage report as a database is definitely possible, but it depends on the coverage tool you’re using. Most coverage tools output data in formats like XML, JSON, or HTML, which you can parse and store in a database for deeper analysis.
A common approach is:
Export the coverage report in JSON/XML
Parse the file using a script (Python, Node.js, etc.)
Insert the parsed results into a database (SQLite, MySQL, PostgreSQL)
Run queries to analyze functions, classes, files, or line-level coverage.