Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.84 KB

File metadata and controls

42 lines (28 loc) · 1.84 KB
description Reference for the codeql resolve database command

Command Resource for codeql resolve database

The codeql resolve database command is used to report metadata about a CodeQL database.

Primary use of codeql resolve 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>.testproj

Alternative uses of codeql resolve database

The 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-dir

Help for codeql resolve database

Run codeql resolve database --help for more information. Run codeql resolve database --help --verbose for much more information.

Commands commonly run BEFORE codeql resolve database

  • codeql database create - Create a new CodeQL database
  • codeql 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.

Commands commonly run AFTER codeql resolve database