Documentation
¶
Overview ¶
Package generate is the thin orchestrator chaining internal/config -> internal/plan -> internal/codegen into the plugin's full request/response cycle, and the FR-017 atomicity check that decides whether any output is emitted at all for a given run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(req *pb.GenerateRequest) (resp *pb.GenerateResponse, diags []diagnostics.Diagnostic)
Generate runs the full pipeline for one plugin invocation: decode + validate configuration, build the generation plan against sqlc's request metadata, then render every file. Diagnostics are collected across every stage and sorted before being returned; per FR-017, resp is nil whenever diags contains any error-severity diagnostic — the caller must not emit any output for the run in that case.
Types ¶
This section is empty.