bigq
is a simplest possible library for making requests to BigQuery.
There is no Java client code inside, just calls to BigQuery's HTTP API. You give it credentials and a query, it authorizes itself and then executes a query and waits for it to end:
(require '[bigq.core :as bigq])
(bigq/query "path/to/auth.json" {:query "select count(*) from my.table"})
To configure query see Google's docs.
That's all! It's not possible to pass access token from outside, it's not handling access token expiration (it just generates new one every time) - we're using this library for scripts running from cron.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close