Building an automatic DB -> GraphQL API converter, using Apache Calcite. Would ShardingSphere be a good fit to provide execution + federated querying? #15254
Replies: 2 comments 1 reply
-
Hi @GavinRay97 welcome to the community! |
Beta Was this translation helpful? Give feedback.
-
Hello @GavinRay97
Try to reply to your question
Notice, since your expectation is
So I give 2, 3, 4. But If you want to use ShardingSphere from the outer, then Quick start could help you use it as an executor by passing the DB connection info and relational SQL to it. |
Beta Was this translation helpful? Give feedback.
-
Hello, this seems a very cool project =)
It is very large and so while I have read the docs, I wanted to ask for advice since not everything is clear.
I have been building a tool which introspects datasources supported by Apache Calcite, and generates GraphQL API's for them:
The API's allow you to query or (soon) update data across all datasources.
You can make virtual relationships, like:
mysql1.db1.blogpost.id <-> postgres1.db2.public.comment.blogpost_id
And then the API generated allows you to query like:
To do this, I am generating Calcite Relational Expression nodes (
RelNode
) for the query statements:Would Apache ShardingSphere be a good fit to use as the "execution engine" for the queries?
So ShardingSphere can distribute the federated reads/writes, and manage the DB connections, etc.
Can I create ShardingSphere query expression directly, without SQL (like Calcite Relational Expression) if so?
Thank you 🙂
Beta Was this translation helpful? Give feedback.
All reactions