launchbadge / sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
Apache License 2.0
13.5k stars 1.28k forks source link

Introduce support for Trino #3367

Open jreuben11 opened 4 months ago

jreuben11 commented 4 months ago

Trino is a distributed SQL engine which supports many backend connectors https://trino.io/ecosystem/data-source.html - if SQLx will support this, it will support everything see Prusto for a reference crate https://github.com/nooberfsh/prusto

abonander commented 4 months ago

From Trino's own documentation: https://trino.io/docs/current/overview/use-cases.html

Do not mistake the fact that Trino understands SQL with it providing the features of a standard database. Trino is not a general-purpose relational database. It is not a replacement for databases like MySQL, PostgreSQL or Oracle. Trino was not designed to handle Online Transaction Processing (OLTP). This is also true for many other databases designed and optimized for data warehousing or analytics.

It's not a magical SQL translation layer. It's designed for analytics.

jreuben11 commented 4 months ago

@abonander Trino is not a relational store, it is a distributed query engine that supports SQL syntax for analytics with push-down optimization of query plans to backing stores.