'How to use BigQuery API from elixir code

How to use BigQuery from elixir code?

I would like to use Big Query web API from elixir code. Although there is no elixir client SDK in SDK libraries page

I will use BigQuery API with service account. For using service account, I have to exec "JWT encode"...

Do you know suitable elixir library for using BigQuery API?



Solution 1:[1]

BigQuery implements a traditional REST API. If no one has implemented it before, it should be straightforward to create one using a REST library.

REST for elixir:

You'll need to authenticate too, OAUTH2 for elixir:

Solution 2:[2]

It's not a library, but the following repo has some example code for some basic usages on BigQuery (It was just an experiment and pretty much immature, but I'm hoping that it's better than nothing..)

https://github.com/parroty/big_query

Solution 3:[3]

I know this is an old question, but looks like this exists now: https://github.com/googleapis/elixir-google-api/tree/main/clients/big_query/

Writing this for folks who come here years later (like I did).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Felipe Hoffa
Solution 2 parroty
Solution 3 punkrockpolly