Console is a database terminal for datahub. It provides a way for users to interact directly with their database and repos/schemas, and is a consumer of the DataHub API.
- Run DataHub
- Navigate to apps/console
- Type SQL or bash commands
help
: lists available commandse.g.
help
connect <repo-base>
: connect to a datahub usere.g.
connect username
mkrepo <repo-name>
: create a new repositorye.g.
mkrepo myrepo
rm <repo-name [-f]>
: remove a repositorye.g.
rm myrepo
ls
: list repositoriese.g.
ls
collab <repo-name>
: list collaborators of a repositorye.g.
collab myrepo
ls <repo-name>
: list tables and views in a repositorye.g.
ls myrepo
desc <table-name [-l]>
: print schema info of a table [with data type]e.g.
schema myrepo.mytable
<other DML>
: execute arbitrary DML on a repo.tablename in your currently connected repo-basee.g.
select * from myrepo.mytable