Skip to main content

A library to manipulate SQL queries, designed with privacy application in mind.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqrlew-0.4.1.tar.gz (1.1 MB view hashes)

Uploaded Source

Built Distributions

pyqrlew-0.4.1-cp38-abi3-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.8+ Windows x86-64

pyqrlew-0.4.1-cp38-abi3-win32.whl (2.7 MB view hashes)

Uploaded CPython 3.8+ Windows x86

pyqrlew-0.4.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ x86-64

pyqrlew-0.4.1-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.0 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ s390x

pyqrlew-0.4.1-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (6.2 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ppc64le

pyqrlew-0.4.1-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.6 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARMv7l

pyqrlew-0.4.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.8 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

pyqrlew-0.4.1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl (5.0 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.5+ i686

pyqrlew-0.4.1-cp38-abi3-macosx_11_0_arm64.whl (3.3 MB view hashes)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

pyqrlew-0.4.1-cp38-abi3-macosx_10_7_x86_64.whl (3.6 MB view hashes)

Uploaded CPython 3.8+ macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page