1 unstable release

0.11.3 Feb 11, 2024

#2681 in Database interfaces

Apache-2.0

180KB
4K SLoC

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.

Dependencies

~0–14MB
~176K SLoC