TugQL specification and schema
Read the current TugQL reference snapshot on this domain and download the Go serialization JSON Schema.
Specification source
This page hosts a snapshot of the public tugql/tugql material at commit ff06f6a under its Apache 2.0 license. Check the source repository for later changes.
- TugQL overview and naming
- Cross-database query reference
- Aggregation reference
- Negative projection reference
- Comment syntax and conversion
The source files above are served as Markdown. The overview's links to design material outside this snapshot point back to the pinned GitHub commit. The syntax cheat sheet and worked tutorial are HTML guides to selected parts of those references.
JSON Schema download
Download schema.json (MIT license notice). This is an exact copy of DALgo's schema at commit 69da201. It describes the Go library's YAML serialization of the core relational read-only dal.StructuredQuery subset and declares JSON Schema draft 2020-12.
It does not validate every text parser authoring tree or prove that every backend executes every construct. Resolve a query against caller-authorized schemas and verify the target adapter's capabilities before execution.