Skip to main content

Query catalog

The index of every named query under sql/. If you add a .sql file there, add a row here in the same PR.

For column-level table reference, see schema/. For the entity-level mental model, see data-model.md.

Analytics

Recurring reporting queries — KPIs, exports, dashboard sources.

FilePurposeOwnerUsed byCost
none yet

Ops

One-off operational queries — debugging incidents, auditing data, manual fixes.

FilePurposeOwnerUsed byCost
none yet

How to add a query

  1. Drop the file into sql/analytics/ or sql/ops/ (kebab-case filename, verb first).
  2. Include the header block — see sql/README.md.
  3. Add a row to this catalog with a one-line purpose.
  4. Commit both in the same PR.

Template row

| [`name-of-query.sql`](../sql/analytics/name-of-query.sql) | What it answers in one line | @petter | Weekly dashboard | cheap |