Hacker News new | ask | show | jobs
by LeftHandPath 824 days ago
I wondered why this sort of thing didn’t already exist. I had to develop for IBM Db2 (for i Series) on a Linux environment (using MariaDB) due to the licensing that stopped us from having a test env.

I wound up writing a very ad-hoc C++ program that would parse a base SQL file and generate the appropriate DB2 and MariaDB dialect versions. Not flexible enough for reuse but it got the job done.

1 comments

I think Apache Calcite can do this, or something similar.

https://calcite.apache.org/