TugQL documentation
Start with a query, then follow the source references for precise behavior.
- Get started with TugQL
Read a TugQL query, learn its source, filter, order and projection stages, and find the Go and TypeScript implementations.
- TugQL syntax cheat sheet
The clause order, projection forms, source qualifiers, parameters and comments used in TugQL text queries.
- TugQT: a query tree you can diff
Store a TugQL read query as structured YAML, review a changed field in Git, and validate the serialized document.
- Join Chinook and geo-ingitdb with TugQL
Walk through one TugQL read query that joins Chinook invoices to country aliases and population data in a Git-backed database.
- TugQL specification and schema
Read the current TugQL reference snapshot on this domain and download the Go serialization JSON Schema.
- TugQL FAQ
Answers about the DTQL rename, TugQT, SQL-like syntax, backend support, schemas and where to try a query.
- TugQL vs PRQL
Compare a TugQL read query with a PRQL pipeline and choose by execution path and query representation.
- TugQL vs Malloy
Compare TugQL queries and TugQT trees with Malloy sources, views and analytical modeling.
- TugQL vs SQL
See the clause order and execution difference between a TugQL read query and a SQL SELECT statement.
- Query a Git-backed inGitDB repository with TugQL
Read the geo-ingitdb country aliases as a TugQL source and see what a Git-backed adapter must provide.
- Query Firestore with TugQL
Write a SQL-like TugQL read for a Firestore collection, then resolve it with an authorized schema and the DALgo Firestore adapter.
- TugQL examples
Read complete TugQL examples for a Git-backed source and a cross-database join, with their execution boundaries stated.