Data-source connectors
A data-source connector lets a StrataBI tile query a database outside Athena. Each one is its own StrataBI module, one per source, and runs a Lambda function in your own AWS account: the tile sends one read-only SQL query and its parameters, the connector runs it against your database, and the rows come back as the tile's result. The database answers live; the connector keeps no copy of its own.
All nine connectors are available. The PostgreSQL, MySQL and SQL Server connectors can read results two ways, and Snowflake's has an optimized result decoder:
- The traditional path, the database's standard Python driver, is the stable path.
- The optimized path, a native Rust reader, needs production validation: it is tested value for value against the traditional path, but not yet in production environments.
Connectors use the traditional path unless an administrator turns on the optimized path with the install setting native_reader = on. The optimized path is for teams that want its speed and accept that it needs production validation: Traditional and optimized paths has its risks and the benchmarks. Oracle, Databricks, BigQuery, Trino and ClickHouse read through their vendors' own Arrow or bulk paths, which are the standard path for those engines.
| Source | Module id | Tested |
|---|---|---|
| PostgreSQL | postgresql_connector | Has run in AWS against Aurora PostgreSQL 16 |
| MySQL | mysql_connector | Tested against MySQL 8.4 and MariaDB 11 in containers, over TLS |
| Microsoft SQL Server | sqlserver_connector | Tested against SQL Server 2022 in a container, over TLS |
| Oracle Database | oracle_connector | Tested against Oracle Database 23ai Free in a container, without TLS |
| Snowflake | snowflake_connector | Tested against a local stand-in of Snowflake's SQL API, not a real account |
| Databricks | databricks_connector | Live on Databricks Free Edition (2026-12-03): sign-in, table listing and queries read through result links; cancel, timeouts and large results tested against a local stand-in |
| Google BigQuery | bigquery_connector | Tested against a local stand-in of the BigQuery API, not a real project |
| Trino | trino_connector | Tested against Trino 484 in a container, over HTTPS. Trino's protocol only: not PrestoDB or Athena |
| ClickHouse | clickhouse_connector | Tested against ClickHouse 26.11 in a container, over HTTPS |
The PostgreSQL connector runs read-only SQL with values bound by the driver, a per-query time budget with server-side cancellation, typed results in your own S3, and credentials that stay in your Secrets Manager. Its page describes each of these.
Amazon Redshift has a module of its own, the Redshift Connector, which runs named queries through the Redshift Data API.
From a tile
A tile names the connector's module and carries its SQL, with named placeholders mapped to the dashboard's inputs:
{"id": "revenue_by_region", "title": "Revenue by region",
"exec": {"type": "lambda", "module_id": "postgresql_connector", "lambda_index": 0},
"query": {"sql": ["SELECT region, sum(total) AS revenue",
"FROM sales.orders",
"WHERE ordered_at >= :since",
"GROUP BY region ORDER BY revenue DESC"],
"params": {"since": "since_date"}},
"block": {"type": "table"}}Values are bound by the database driver, never written into the SQL text.
How long a query may take
A connector query runs async by default: StrataBI starts it and the tile shows its progress, for up to 15 minutes (900 s) by default. A quick query can run sync ("sync": true), within the default set at install (25 s unless changed, at most 120 s). At its deadline a query is cancelled on the database server and the tile says it timed out. Past 15 minutes, a workload needs S3 caching or a module's own async logic, which StrataBI runs without a time limit; neither is built for the connectors yet. See Execution types.
What each connector's page covers
Each connector has a page of its own, linked from the table above. Each page has:
- Before installing: the read-only database user, where the credentials live (never in a dashboard), and how the function reaches your database.
- Install:
stratactl install <module id>and its settings. - From a tile: the dialect, the placeholders, and what is refused (a connector runs one read-only statement).
- Results: how the database's types arrive in the tile, and the row and size limits.
- Timing and errors: the time budget, and the fixed sentence the tile shows for each kind of failure. The database's own error text is never shown.
- Tested: what has run against the real database, and what has not.
Related
PostgreSQL Connector · Execution types · Build a module · Redshift Connector · Modules
Shaleio