9tigerio / db2rest

Instant low-code DATA API platform for 30x faster application development. Connect any database, run anywhere. Power your GENAI application function calls
https://db2rest.com
Apache License 2.0
235 stars 39 forks source link

Query Federation - Join data from multiple data-sources #678

Open MichalisDBA opened 2 months ago

MichalisDBA commented 2 months ago

It would be great to have the ability to query and join data across multiple data-sources.

An example of that implementation is used by https://trino.io/

An example query would be"

SELECT * FROM mysql.db.table -- MySQL Server
LEFT JOIN mssql.db.table -- Microsoft SQL Server
ON mysql.db.table.id = mssql.db.table.id.id
SELECT * FROM mysql_srv1.db.table -- MySQL Server 1
LEFT JOIN mysql_srv2.db.table -- MySQL Server 2
ON mysql_srv1.db.table.id = mysql_srv2.db.table.id.id

Except tables, support also VIEWS.

thadguidry commented 2 months ago

I think this is an enhancement that we could support really well in our Enterprise edition. Would you be able to sponsor the work?