A web interface to write SQL against Statsguru. Based on data from obrasier/cricketstats.
- Clone the repo.
direnv allow .
if using direnv and Nix.make
to run tests.make run
to run on localhost:8080/cricket-query. This requires CSVs from cricketstats indata/
.
These are in saved-queries with the .txt
extension.
The format is very barebones, being line-delimited:
- Title.
- Description (one paragraph, no HTML).
- Formats (blank line for all; otherwise
"test", "odi", "t20i"
). - Genders (blank line for all; otherwise
"men", "women"
). - Query (all remaining lines; can span multiple lines).
After updating this, run make
or make run
(which will automatically
invoke make saved_queries.go
) to update saved_queries.go
. Do not
update this file manually.