A Trino driver plugin for Tabularis, the open-source database client.
This plugin connects Tabularis to Trino through a standalone Rust executable that implements JSON-RPC 2.0 over stdio. Browse catalogs, schemas, tables, and views, then run SQL in the editor or SQL notebooks—including federated queries across catalogs.
Requires Tabularis v0.26.0 or later for query cancellation support.
- Features
- Screenshots
- Connection Configuration
- Installation
- How It Works
- Supported Operations
- Building from Source
- Development and Testing
- License
- Catalog and schema browsing — Discover catalogs, schemas, tables, columns, views, view definitions, and view columns visible to the Trino user.
- Query execution — Run SQL in the Tabularis editor and notebooks, including federated queries across configured catalogs.
- Session properties — Retain Trino
SET SESSIONandRESET SESSIONchanges across queries that share a Tabularis session, while isolating state by session and connection. - Complete results — Follow Trino's result-page links and preserve row order, including when a response page contains no rows. Support requested result limits and offsets.
- Bounded paging — A grid page keeps only its own rows. The plugin stops reading once one row past the page shows that more rows exist, then releases the rest of the Trino query, so opening the first 100 rows of a large result does not download or buffer the whole result. Each page re-runs the SQL; the total row count is reported only when Trino finished within the rows read. Write statements always run to completion.
- Cancellation — Send cancellation to Trino through its client protocol when Tabularis cancels a running query.
- Query diagnostics — Return Trino's query ID, final state, states observed while collecting pages, client elapsed time, and selected Trino timing/split statistics. Trino errors include the query ID, error code/type, and SQL location when the coordinator provides them.
- Exact values — Preserve NULL, DECIMAL, large integers, ARRAY, MAP, and ROW values without silent precision loss.
- Secure authentication — Support unauthenticated local development, HTTP Basic authentication, JWT/OAuth2 access tokens, and OAuth2 external (browser) authentication, for example with Keycloak. Credentials are only sent over HTTPS.
- TLS configuration — Support SSL modes, a custom CA certificate, an
optional client certificate/private key pair, and relaxed certificate
verification (
SSLVerification=CAorNONE) for self-signed deployments. - Cross-platform releases — The release workflow builds for Linux x64/arm64, macOS x64/arm64, and Windows x64.
The plugin retains Trino session properties delivered through
X-Trino-Set-Session and X-Trino-Clear-Session for subsequent requests that
share the host-provided session_id. State is process-local and is released
when Tabularis closes the plugin process for that connection session.
Other Trino protocol state is not retained yet: USE catalog/schema changes,
role changes, prepared statements, and transaction IDs. Select catalogs and
schemas through Tabularis, use fully qualified names where needed, and do not
rely on multi-query transaction or prepared-statement state persisting between
plugin calls.
This plugin is read-only. Grid editing, CRUD, DDL actions, and Visual EXPLAIN are not supported. Presto compatibility has not been evaluated.
The connection screenshot uses a local test account; the password is masked.
| Tabularis field | Description |
|---|---|
| Host | Trino coordinator hostname or URL. Use an https:// URL for HTTPS. Append connection options as a query string. |
| Port | Coordinator port. Defaults to 8080, the usual Trino HTTP port (HTTPS deployments often use 443 or 8443). The local fixture maps host port 5432 to container port 8080, so set 5432 when using it. |
| Database name | Default Trino catalog. Enable multiple database browsing to browse additional catalogs. |
| Schema | Optional default schema for browsing and query context. |
| Username | Trino user; defaults to tabularis when blank. With token or external authentication, leave it blank to use the user from the token. |
| Password | Optional; password authentication requires HTTPS. Leave it blank for a Trino server without authentication, such as a local Docker cluster; Trino rejects passwords over plain HTTP. With authentication=token, holds the access token. |
| SSL mode | Disabled, Preferred, Required, Verify CA, or Verify Identity. |
| CA certificate | Optional PEM content or a path to a PEM file. |
| Client certificate/key | Optional PEM content or file paths. Provide both when mutual TLS is required. |
The connection-string field is not used. Configure the coordinator and catalog through the standard connection fields.
Trino-specific options are appended to the Host field as a query string, using the Trino JDBC driver's property names:
https://trino.example.com?externalAuthentication=true&SSLVerification=NONE
| Option | Description |
|---|---|
SSL |
true connects over HTTPS when the host has no https:// scheme. |
SSLVerification |
FULL (default) checks the certificate chain and hostname; CA skips the hostname check; NONE accepts any certificate. Implies SSL=true. Prefer providing a CA certificate over NONE. |
externalAuthentication |
true enables OAuth2 browser login (Trino http-server.authentication.type=oauth2, e.g. Keycloak). On the first request the plugin opens the login page in your default browser and waits for the token. The token is reused for the plugin process lifetime and refreshed when Trino rejects it. Leave the password blank. |
externalAuthenticationTimeout |
Seconds to wait for the browser login. Defaults to 110, below Tabularis' default 120 second plugin call timeout. |
accessToken |
A JWT/OAuth2 access token sent as Authorization: Bearer. The Host field is stored in plain text, so prefer authentication=token. |
authentication |
token sends the Password field as a bearer access token (stored like a password). password and external are also accepted. |
Token and external authentication require HTTPS, except for localhost
coordinators. If the browser cannot be opened, the login URL is written to the
plugin log and included in the timeout error.
In Tabularis, open Settings → Plugins, search for Trino, and install it. The plugin is also listed on the Tabularium registry.
-
Download the archive for your operating system and architecture from the GitHub Releases page.
-
Extract the archive. It contains the plugin executable and
.tabulariummanifest. -
Copy both files into the Trino plugin directory:
OS Plugin directory Linux ~/.local/share/tabularis/plugins/drivers/trino/macOS ~/Library/Application Support/tabularis/plugins/drivers/trino/Windows %APPDATA%\tabularis\plugins\drivers\trino\ -
Restart Tabularis or toggle the Trino plugin off and on in Settings.
For a local development build, use just dev-install from this repository.
The plugin is a standalone Rust executable that communicates with Tabularis using JSON-RPC 2.0 over stdio:
- Tabularis starts the plugin as a child process.
- Tabularis sends newline-delimited JSON-RPC requests through the plugin's standard input; the plugin writes responses to standard output.
- The plugin submits SQL to Trino's
/v1/statementendpoint, follows eachnextUriuntil the statement finishes, and sends an HTTPDELETEto cancel a running statement when requested. - For a paginated request, rows outside the requested page are discarded as
they arrive. Once a row past the page has been read, the plugin sends
DELETEfor the remainingnextUriand returns the page withhas_moretrue andtotal_rowsnull. Trino lists such queries asUSER_CANCELED, as it does when the Trino CLI pager is closed early.
Catalog and schema context comes from each connection/request. Catalogs map to Tabularis databases, and Trino metadata visibility follows the connected Trino user's permissions.
| Operation | Support |
|---|---|
| Connection test | Supported (SELECT 1) |
| Catalog discovery | Supported (get_databases) |
| Schema discovery | Supported (get_schemas) |
| Table and column discovery | Supported (get_tables, get_columns) |
| View discovery | Supported, including definitions and columns |
| SQL execution | Supported with full response paging, cancellation, and query diagnostics |
| Grid editing and CRUD | Not supported; plugin is read-only |
| DDL actions | Not supported |
| Visual EXPLAIN | Not supported |
| Presto | Not evaluated |
Indexes, foreign keys, and routines are not exposed by this release. Unsupported methods return the plugin protocol's not-implemented response.
just build
just dev-installOr build a release executable directly:
cargo build --releaseThe binary is written to target/release/trino-plugin (trino-plugin.exe on
Windows).
Run the Rust checks:
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo testStart and seed the local Trino 483 fixture, which exposes the memory and
tpch catalogs:
docker compose -f fixture/docker-compose.yml up -d
docker exec trino-fixture trino --execute "SELECT 1"
./fixture/seed.shThe fixture maps host port 5432 to container port 8080. Connect in
Tabularis to 127.0.0.1:5432 with catalog memory, username tester, and no
password. The in-memory catalog is cleared when the container is recreated;
rerun the seed script after a restart.
Run the JSON-RPC fixture checks with:
./scripts/e2e-fixture-test.shSee MANUAL_TEST_PLAN.md for app checks, including metadata browsing, editor and notebook queries, pagination, cancellation, and HTTPS/Basic authentication. Stop the fixture when finished:
docker compose -f fixture/docker-compose.yml downTo test OAuth2 external authentication, start Trino with a Keycloak identity
provider (Keycloak user alice, password alice):
docker compose -f fixture/oauth/docker-compose.yaml up -dConnect with Host
https://localhost:8443?externalAuthentication=true&SSLVerification=NONE and a
blank username and password; the plugin opens the Keycloak login page in your
browser. Stop it with docker compose -f fixture/oauth/docker-compose.yaml down.
This project is licensed under the Apache License 2.0.



