How to explore github repos via Databend

 Databend now supports GitHub as a data source, and you can read the relevant code at storages/github.

create github-engine based database
Before running databend, your Github Access Token should be set.
export GITHUB_TOKEN=<your_token>;
Create a Github powered database.
Next, start up databend.
databend :) create database datafuselabs engine=github;0 rows in set. Elapsed: 2.611 sec. 

show all tables
Show all tables in this database, which are currently flattened. This means that Repos, issues and PRs are all in the form of tables.
databend :) use datafuselabs;0 rows in set. Elapsed: 0.013 sec.databend :) show tables;+---------------------------------+| name                            |+---------------------------------+| .github                         || .github_comments                || .github_issues                  || .github_prs                     || databend                        || databend-playground             || databend-playground_comments    || databend-playground_issues      || databend-playground_prs         || databend_comments               || databend_issues


View basic information about a repo
databend :) select * from databend;+------------+----------+------------+------------+-------------+----------------+-------------------+-------------------+| reposiroty | language | license    | star_count | forks_count | watchers_count | open_issues_count | subscribers_count |+------------+----------+------------+------------+-------------+----------------+-------------------+-------------------+| databend   | Rust     | apache-2.0 |       2661 |         252 |           2661 |               349 |                63 |+------------+----------+------------+------------+-------------+----------------+-------------------+-------------------+1 rows in set. Elapsed: 1.368 sec.


Eg

1、 How to find good for fist issue ?

2、 Calculate the average time of issue closing / PR closing?

Comments

Popular posts from this blog

The Databend Community Actively Embraces The Rust Ecosystem

This week in Databend #26

Databend Design | Whitepapers