query

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewQuery added in v0.0.3

func GenerateNewQuery(opts *GenerateQueryOptions) error

func InitWorkspace

func InitWorkspace(base, codeqlVersion string, overwriteExisting bool) (*config.QLTConfig, error)

InitWorkspace initializes a CodeQL query workspace under base. It writes codeql-workspace.yml and optionally updates qlt.conf.json when useBundle is set.

func RunCompile

func RunCompile(base string, c *utils.CommonFlags) error

RunCompile compiles qlpack belonging to the selected packs using `codeql query compile`. When packs is empty, every pack listed under base is compiled; otherwise only packs whose full or unique short name matches an entry in packs are compiled.

func RunPackInstall

func RunPackInstall(base string, c *utils.CommonFlags) error

RunPackInstall resolves qlpacks under the target path using `codeql pack ls` and runs `codeql pack install` for each pack whose dependencies are not fully cached. Deps are checked via `codeql pack resolve-dependencies` and `codeql resolve packs` before triggering an install.

func RunQuery

func RunQuery(base, queryName, database, lang, pack, format, output, additionalPacks string, threads int) error

RunQuery resolves the query file and runs `codeql database analyze`.

Types

type GenerateQueryOptions added in v0.0.3

type GenerateQueryOptions struct {
	Base      string
	Name      string
	Language  string
	QueryKind string
	PackName  string
	Overwrite bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL