internal/

directory
v0.0.0-...-603fb30 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0

Directories

Path Synopsis
Package ast implements phase P2: building verified renderings from a scanned template, with exact source maps back to the template file.
Package ast implements phase P2: building verified renderings from a scanned template, with exact source maps back to the template file.
Package cache holds the committed oracle cache and the catalog snapshot model.
Package cache holds the committed oracle cache and the catalog snapshot model.
Package cli implements the sqletch commands as testable functions; cmd/sqletch is thin cobra wiring over these.
Package cli implements the sqletch commands as testable functions; cmd/sqletch is thin cobra wiring over these.
Package codegen emits the generated Go package: fragment tables, typed params/row structs, and one function per query.
Package codegen emits the generated Go package: fragment tables, typed params/row structs, and one function per query.
Package config loads and validates sqletch.yaml.
Package config loads and validates sqletch.yaml.
Package corpus is the oracle ground-truth corpus harness (design 15 §7.2).
Package corpus is the oracle ground-truth corpus harness (design 15 §7.2).
Package devdb manages the development database the type oracle runs against: a user-supplied DSN, or an auto-managed disposable container.
Package devdb manages the development database the type oracle runs against: a user-supplied DSN, or an auto-managed disposable container.
Package diagnostics defines the user-facing error model shared by every compiler phase.
Package diagnostics defines the user-facing error model shared by every compiler phase.
Package dialect defines the driver interfaces separating the dialect-agnostic core from database specifics.
Package dialect defines the driver interfaces separating the dialect-agnostic core from database specifics.
mysql
Package mysql implements the MySQL dialect driver (Tier 2).
Package mysql implements the MySQL dialect driver (Tier 2).
postgres
Package postgres implements the PostgreSQL dialect driver.
Package postgres implements the PostgreSQL dialect driver.
sqlite
Package sqlite implements the SQLite dialect driver (Tier 2).
Package sqlite implements the SQLite dialect driver (Tier 2).
Package gosrc extracts template text from Go source files.
Package gosrc extracts template text from Go source files.
Package lsp implements the sqletch language server (docs/design/10-lsp.md): JSON-RPC 2.0 over stdio, a subset of the Language Server Protocol (diagnostics + go-to-definition), backed by an injected Workspace checker so the protocol layer never touches dialect drivers or the pipeline directly.
Package lsp implements the sqletch language server (docs/design/10-lsp.md): JSON-RPC 2.0 over stdio, a subset of the Language Server Protocol (diagnostics + go-to-definition), backed by an injected Workspace checker so the protocol layer never touches dialect drivers or the pipeline directly.
Package nullability decides, per result column, whether the generated Go field must be a pointer — under the spec's per-shape-sound discipline: narrowing uses only the skeleton; guarded fragments NEVER narrow.
Package nullability decides, per result column, whether the generated Go field must be a pointer — under the spec's per-shape-sound discipline: narrowing uses only the skeleton; guarded fragments NEVER narrow.
Package policy implements cross-query policy weaving (design 14, spec §"Cross-Query Policies"): a boolean predicate declared once in sqletch.yaml, woven after the P1 scan and before rendering into every query that touches a designated table.
Package policy implements cross-query policy weaving (design 14, spec §"Cross-Query Policies"): a boolean predicate declared once in sqletch.yaml, woven after the P1 scan and before rendering into every query that touches a designated table.
Package rules implements the structural rule checks R1–R9.
Package rules implements the structural rule checks R1–R9.
Package shape computes and enumerates the reachable query shapes of a template: guard bitmask × one ordinal per @choose block.
Package shape computes and enumerates the reachable query shapes of a template: guard bitmask × one ordinal per @choose block.
Package template implements phase P1: scanning .sql template files into a structured model (constant skeleton + guarded fragments) with exact source spans.
Package template implements phase P1: scanning .sql template files into a structured model (constant skeleton + guarded fragments) with exact source spans.

Jump to

Keyboard shortcuts

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