This topic describes how to export a snapshot for use with the CodeQL plugins and extensions, or to upload to LGTM using the LGTM API.
odasa). For information about the new CodeQL CLI, that was released with Semmle 1.23, see https://help.semmle.com/codeql/.
The CodeQL plugins and extensions allow you to write and run queries on project snapshots locally in your IDE. If you want to create and test queries in your IDE , then you need to have:
- One or more Semmle snapshots to run queries against.
- A copy of the license file (stored in a
licensedirectory—either a sub-directory of the
odasadirectory or the
SEMMLE_HOMEdirectory, or in the location explicitly defined by
The best way to create a database to use in a CodeQL plugin or extension is to export a recent snapshot using the export command.
Exporting a snapshot
export command has been designed to enable you to export a snapshot directory in the format required by CodeQL for Eclipse.
If you want to export a snapshot other than the most recent one, you can omit the
--latest flag and specify a particular snapshot directory to export instead.
If you exported the latest snapshot for the Hadoop project by running:
odasa export --project projects/Hadoop --latest from the
odasa directory, then the snapshot might be exported as