Exalt SQL is a suplimented SQL language with Ruby built ontop of Presto.
- SQL is the main interface
- Easily supplement queries with for and while loops, if statements, etc.
- Keeps SQL queries simple
Currently the only backend supported is Presto but others such as Redshift or BigQuery are possible.
- Clone the repo
- Edit
config.yml
with your Presto info bundle install
ruby app.rb
Subquery
data = query("select * from tpch.sf1.customer limit 50")
data = query("select count(*) AS cnt FROM #{data.table}")
data.show()