| description | Reference for the codeql resolve database command |
|---|
The codeql resolve database command is used to report metadata about a CodeQL database.
The following is an example use of the command for getting metadata about the test database for
an example <language> (e.g. actions, cpp, csharp, go, java, javascript, python, 'ruby), <pack-basename>, and <QueryBasename>:
$ codeql resolve database -- languages/<language>/<pack-basename>/test/<QueryBasename>/<QueryBasename>.testprojThe codeql resolve database command can also provide different levels of detail:
# Get metadata about some CodeQL database via its absolute local directory path
codeql resolve database -- /some/other-repo/or-dir/path-to/existing-codeql-database-dirRun codeql resolve database --help for more information.
Run codeql resolve database --help --verbose for much more information.
codeql database create- Create a new CodeQL databasecodeql test extract- Create a test CodeQL database from the source code files in the target test directory WITHOUT running unit tests.codeql test run- Create a test CodeQL database from the source code files in the target test directory WHILE running unit tests.
codeql query run- Run queries against the resolved databasecodeql database analyze- Analyze the resolved database