Python-native SQL dialect that renders to BigQuery
Project description
barbq
Python-native SQL dialect that renders to BigQuery
Why: exposes SQL to the machinery of python
How: Data zone: encode the BQ CFG in typed membership-relations of python objects, write a reverse parser and reverse lexer, which can be chained to form a serializer for BQ ASTs
UI zone: write overloaded/pass-through constructors using Union types to satisfy the looks-like-SQL constraint
What it looks like:
TODO include code snippets
Tradeoffs left to the user: Your code can look like SQL; the more pythonic power you want, the more your code will look like python
You can use the constructor-overloading to make your code look like SQL; the more type validation you want, the more your code will look like type-annotated SQL
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
barbq-0.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
barbq-0.0.1-py3-none-any.whl
(2.3 kB
view hashes)