-
|
I use codeql database run-queries -- <database> <ql> to run queries. The results are stored in <database>/results/<scope/name>/<path/to/ql>.bqrs. How can I know <scope/name> for a <ql>? I find codeql resolve queries <ql> can output the <scope/name>. Is the correct way to get the pack name? example output: Recording pack reference <scope/name1> at path1.
Recording pack reference <scope/name2> at path2.
ql1
ql2
ql3
Is there some packages/cli to get metadata of a query? codeql resolve metadata --format=json -- <ql> does not output anything. The codeql version is CodeQL command-line toolchain release 2.25.6. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Lslightly Thank you for your question. What are you actually trying to achieve? Digging into the contents of the database directory is probably not what you want to do, as the directory structure is not guaranteed to stay the same. |
Beta Was this translation helpful? Give feedback.
If you want to know if a query occurs in a certain pack, then codeql resolve queries is indeed the command you need.