2014-02-12 51 views
0

我想讓Github上的頂級軟件庫顯示在我的Rails應用程序上。我想我已經過了一半了。Google BigQuery with Rails

這是我使用的是在谷歌的BigQuery代碼:

SELECT repository_name, repository_url, MAX(repository_forks) as total_forks, MAX(repository_watchers) as total_watchers, repository_language 
FROM [publicdata:samples.github_timeline] 
GROUP BY repository_url, repository_language, repository_name 
ORDER BY total_watchers DESC 
LIMIT 100 

有沒有什麼方法可以讓我得到這個查詢的結果作爲一個JSON,所以我可以在我的Rails應用程序解析它們?

在此先感謝。

回答