databaseRunQueries(): add optimizeForLastQueryRun parameter

This commit is contained in:
Chuan-kai Lin 2023-02-15 08:45:13 -08:00
parent 3095a09bb0
commit 8242edb8ed
9 changed files with 47 additions and 11 deletions

View file

@ -571,6 +571,15 @@ export function isGoodVersion(versionSpec: string) {
return !BROKEN_VERSIONS.includes(versionSpec);
}
/**
* Checks whether the CodeQL CLI supports the `--expect-discarded-cache` command-line flag.
*/
export async function supportExpectDiscardedCache(
codeQL: CodeQL
): Promise<boolean> {
return codeQlVersionAbove(codeQL, "2.12.1");
}
export const ML_POWERED_JS_QUERIES_PACK_NAME =
"codeql/javascript-experimental-atm-queries";