Crate lutra

source ·
Expand description

Query runner for PRQL

Takes a project tree of source files, compiles PRQL and executes the queries in databases. Defines database connection parameters in .prql files using @lutra annotations.

Works in following stages:

  • discover: walk over a directory in the file system to find .prql source files,
  • compile: use prqlc to compile PRQL to SQL and then find @lutra annotations,
  • execute: connect to databases to execute the queries and return results as Apache Arrow record batches.

For executing the queries and converting to Apache Arrow, lutra uses connector_arrow crate.

Modules§

Structs§

Functions§