gritql
v3.0.0-beta.25
Published
The library is built to query simple dimension/metric based tables. It allows to fetch data in the form you want it.
Downloads
19
Readme
gritql | A query library for your SQL ddatabase.
The library is built to query simple dimension/metric based tables. It allows to fetch data in the form you want it.
example
Query:
query customers{
fetch(country: US){
plan {
revenue: sum(a: planPrice)
}
}
}
Response:
{
free: {
revenue: 0
},
small: {
revenue: 9000
},
large: {
revenue: 380
},
pro: {
revenue: 500
}
}
Table Schema: Customer Name, plan, planPrice