Skip to content

Commit

Permalink
docs: add Trino Connecting to Databases doc
Browse files Browse the repository at this point in the history
Signed-off-by: Đặng Minh Dũng <[email protected]>
  • Loading branch information
dungdm93 committed Feb 18, 2021
1 parent 6192337 commit 5bce3de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/pages/docs/Connecting to Databases/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ A list of some of the recommended packages.
|[MySQL](/docs/databases/mysql)|```pip install mysqlclient```|```mysql://<UserName>:<DBPassword>@<Database Host>/<Database Name>```|
|[Oracle](/docs/databases/oracle)|```pip install cx_Oracle```|```oracle://```|
|[PostgreSQL](/docs/databases/postgresql)|```pip install psycopg2```|```postgresql://<UserName>:<DBPassword>@<Database Host>/<Database Name>```|
|[Trino](/docs/databases/trino)|```pip install sqlalchemy-trino```|```trino://{username}:{password}@{hostname}:{port}/{catalog}```|
|[Presto](/docs/databases/presto)|```pip install pyhive```|```presto://```|
|[SAP Hana](/docs/databases/hana)|```pip install hdbcli sqlalchemy-hana or pip install apache-superset[hana]```|```hana://{username}:{password}@{host}:{port}```|
|[Snowflake](/docs/databases/snowflake)|```pip install snowflake-sqlalchemy```|```snowflake://{user}:{password}@{account}.{region}/{database}?role={role}&warehouse={warehouse}```|
Expand Down
17 changes: 17 additions & 0 deletions docs/src/pages/docs/Connecting to Databases/trino.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Trino
menu: Connecting to Databases
route: /docs/databases/trino
index: 28
version: 1
---

## Trino

The [sqlalchemy-trino](https://pypi.org/project/sqlalchemy-trino/) library is the recommended way to connect to Trino through SQLAlchemy.

The expected connection string is formatted as follows:

```
trino://{username}:{password}@{hostname}:{port}/{catalog}
```

0 comments on commit 5bce3de

Please sign in to comment.