Chuyển tới nội dung chính

Databases

A database connection tells the workspace how to reach a query engine. It is configured under Manage → Workspace settings → Engines.

Engine connections

The table lists each connection's Name, Engine, Host:Port, Status and Secret. Use Test to check reachability (a new connection shows Unknown until tested), Edit and Delete.

Add a connection​

Press Add connection.

The Add engine connection dialog

FieldMeaning
NameA label, for example prod-trino.
EngineTrino or StarRocks.
Host, PortWhere the engine listens.
UserOptional user name sent to the engine.
HTTP schemehttp or https (Trino).
Catalog, SchemaOptional defaults.
Run queries as the logged-in userImpersonation. Requires Trino impersonation and Ranger.
Per-user delegationRun queries as the signed-in user's own identity (requires SSO).
Governed dataThe engine applies row filters and column masks per user. Data API endpoints on a governed connection must run queries as the caller.
SecretA saved credential for the connection.

Egret validates reachability when you save.

Trino setup

Trino must accept forwarded headers (http-server.process-forwarded=true). Without it Trino returns HTTP 406 and Egret shows 502 Bad Gateway.