-
Hi, I'm intrigued by the idea of using node-mysql2's server API to create a unified ODBC endpoint for data aggregated from various databases, or even REST APIs. The way I'm imagining going about this, is to add an ORM (like Prisma or Sequelize) and translate incoming requests to their interaction methods. Then aggregate the data and send it back through node-mysql2's server API. (The connection would be read-only) Would this be at all feasible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
not sure I fully follow. Do you want to federate various sources ( odbc, rest, other db clients ) and expose as a mysql server connection? Yes, definitely feasible ( but you'd need to add sql parser so that you can route queries somehow to the relevant source ) I have some examples but they are 1:1 mapping mysql -> something else |
Beta Was this translation helpful? Give feedback.
not sure I fully follow. Do you want to federate various sources ( odbc, rest, other db clients ) and expose as a mysql server connection? Yes, definitely feasible ( but you'd need to add sql parser so that you can route queries somehow to the relevant source )
I have some examples but they are 1:1 mapping mysql -> something else