pub fn compile(prql: &str) -> Result<String>
Expand description

Compile a PRQL string into a SQL string.

This has three stages:

  • parse — Build an AST from a PRQL query string.
  • resolve — Finds variable references, validates functions calls, determines frames.
  • translate — Write a SQL string from a PRQL AST.