Documentation

Strata SQL is a tool for visualising and developing physical data models, linked to logical and conceptual models and to a semantic layer of metrics, with governance at every level and a full version history. A model is a plain file, so it lives in Git like code. Use it as a VS Code extension, from the command line (the @stratasql/strata-sql npm package) or in a browser (the live view, also served by a Docker image).

New here? Start with the Quick start.

Guides#

GuideWhat it covers
Quick startInstall, create a project, add tables, govern, save, in about ten minutes
Projects and filesThe folder layout, every file, the terminal commands, databases, domains
Import from dbtStart from manifest.json; re-sync without losing your work
Import from SQL scriptsCold start from DDL and queries in eleven dialects
Levels and alignmentConceptual, logical, physical and semantic, and how they link
GovernanceTags, policies, owners, classification and domains
Semantic layerMetrics, calculations, grain
Impact and load orderWhat breaks if I change this, what loads first, SLAs
Versions and GitVersion streams, the tamper-evident log, what to commit, merging
Share and AILive view, HTML export, ETL code, embeddings and assistants
ShortcutsKeyboard, mouse and Command Palette

Conventions#

  • Strata SQL is the product name on this site. The commands in VS Code start with Strata SQL:, and the terminal command is strata-sql (or node cli.js from a source checkout).
  • Shortcuts use Cmd on Mac and Ctrl on Windows and Linux.
  • These pages are written from the product's own help. The in-editor help (Cmd/Ctrl + F1) is the complete reference.
  • Nothing on this site runs your SQL or connects to your warehouse, and neither does Strata SQL.