feat: Add StarRocks support (#23209)

Signed-off-by: miomiocat <284487410@qq.com>
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
This commit is contained in:
miomiocat
2023-05-23 22:33:27 +08:00
committed by GitHub
parent bc0079f2fb
commit f036adbc4f
9 changed files with 367 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ A list of some of the recommended packages.
| [Trino](/docs/databases/trino) | `pip install 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}` |
| [StarRocks](/docs/databases/starrocks) | `pip install starrocks` | `starrocks://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>` |
| [Snowflake](/docs/databases/snowflake) | `pip install snowflake-sqlalchemy` | `snowflake://{user}:{password}@{account}.{region}/{database}?role={role}&warehouse={warehouse}` |
| SQLite | No additional library needed | `sqlite://` |
| [SQL Server](/docs/databases/sql-server) | `pip install pymssql` | `mssql+pymssql://` |

View File

@@ -0,0 +1,26 @@
---
title: StarRocks
hide_title: true
sidebar_position: 5
version: 1
---
## StarRocks
The [sqlalchemy-starrocks](https://pypi.org/project/starrocks/) library is the recommended
way to connect to StarRocks through SQLAlchemy.
You'll need to the following setting values to form the connection string:
- **User**: User Name
- **Password**: DBPassword
- **Host**: StarRocks FE Host
- **Catalog**: Catalog Name
- **Database**: Database Name
- **Port**: StarRocks FE port
Here's what the connection string looks like:
```
starrocks://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>
```