61 releases (8 breaking)

0.9.17 Mar 28, 2024
0.9.13 Jan 30, 2024
0.7.1 Dec 28, 2023
0.5.2 Nov 20, 2023
0.2.1 Jul 27, 2023

#587 in Database interfaces

Download history 32/week @ 2023-12-25 101/week @ 2024-01-01 236/week @ 2024-01-15 4/week @ 2024-01-22 130/week @ 2024-01-29 1001/week @ 2024-02-26 14/week @ 2024-03-04 39/week @ 2024-03-11 377/week @ 2024-03-18 163/week @ 2024-03-25 38/week @ 2024-04-01 25/week @ 2024-04-08

606 downloads per month
Used in qrlew-sarus

Apache-2.0

1.5MB
43K SLoC

Qrlew Crates.io Version Discord X (formerly Twitter) Follow

Qrlew Rust library (by Sarus)

Qrlew Rust library is documented here

Read the general Qrlew documentation on qrlew.readthedocs.io.

Learn more about Sarus Technologies.


lib.rs:

Qrlew framework (by Sarus)

Open source SQL manipulation framework written in Rust

What is Qrlew?

Qrlew is an open source library that aims to parse and compile SQL queries into an Intermediate Representation (IR) that is well-suited for various rewriting tasks. Although it was originally designed for privacy-focused applications, it can be utilized for a wide range of purposes.

SQL Query IR

Qrlew transforms a SQL query into a combination of simple operations such as Map, Reduce and Join that are applied to Tables. This representation simplifies the process of rewriting queries and reduces dependencies on the diverse range of syntactic constructs present in SQL.

Type Inference Engine

Differential Privacy (DP) guaranrtees are hard to obtain without destroying too much information. In many mechanisms having prior bounds on values can improve the utility of DP results dramatically. By propagating types cleverly, Qrlew can returns bounds for all values.

Differential Privacy compiler

Qrlew can compile SQL queries into Differentially Private ones. The process is inspired by Wilson et al. 2020. The complexity of the compilation process makes Qrlew IR very useful at delivering clean, readable and reliable code.

Dependencies

~16–38MB
~701K SLoC