GH-500 · Question #53
What does a CodeQL database of your repository contain?
The correct answer is A. a build of the code and extracted data. CodeQL databases contain queryable data extracted from a codebase, for a single language at a particular point in time. The database contains a full, hierarchical representation of the code, including a representation of the abstract syntax tree, the data flow graph, and the…
Question
What does a CodeQL database of your repository contain?
Options
- Aa build of the code and extracted data
- Ba build for Go projects to set up the project
- Ca representation of all of the source code
- Dbuild commands for C/C++, C#, and Java
How the community answered
(39 responses)- A90% (35)
- B3% (1)
- C3% (1)
- D5% (2)
Explanation
CodeQL databases contain queryable data extracted from a codebase, for a single language at a particular point in time. The database contains a full, hierarchical representation of the code, including a representation of the abstract syntax tree, the data flow graph, and the control flow Each language has its own unique database schema that defines the relations used to create a database. The schema provides an interface between the initial lexical analysis during the extraction process, and the actual complex analysis using CodeQL. The schema specifies, for instance, that there is a table for every language construct. For each language, the CodeQL libraries define classes to provide a layer of abstraction over the database tables. This provides an object-oriented view of the data which makes it easier to write
Topics
Community Discussion
No community discussion yet for this question.