generate

package
v0.0.0-...-2de61a9 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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