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 ¶
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.