reviewquery

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package reviewquery registers the datalog engine as the compiler for a review manifest's inline query bindings. core/review holds the manifest vocabulary and no query language (C29), core/query holds the language and knows nothing about checklists, and this package imports both so neither has to import the other. Blank-import it wherever a binary composes a checklist surface, the way stdlib/relations is blank-imported to install the built-in relations.

A binary that omits it still loads a manifest, but an inline query binding then fails at Load with a message naming this package rather than resolving to no rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct{}

Compiler compiles a manifest's inline query as a datalog program.

func (Compiler) CompileQuery

func (Compiler) CompileQuery(req review.QueryRequest) (*check.Rule, error)

CompileQuery parses the manifest's match text and binds the result to the identity and presentation the manifest already fixed, against the vocabulary the review runs with (agni issue 779), so an inline query can name the run's own library. The error names the query rather than the item, because Validate wraps it with the item id and doubling that reads as two separate problems.

Jump to

Keyboard shortcuts

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