Show HN: SQL Polyglot
codapi.org
codapi.org
But I mean, that would probably be sort of a nightmare to make happen in practise. You'd need everyone that touches the code base to understand and accept that constraint, you'd probably be leaving a bunch of performance on the table without using DB specific features and it would drastically increase the test surface I suppose.
It's just a thought, I've never come across a situation where this would be worth doing over just sticking to a single provider but I'm interested to know if there are.
Also heads up, I tried to use the codapi C# playground and just get a "code execution timeout" every time. :)
In theory, it sounds great, but in practice you indeed lose database-specific operators, you should restrain from using database-specific optimisations, etc...
And yes, I should definitely increase the C# sandbox timeout. Will do :)
What SQL Polyglot can do is help you quickly check if certain database engines support a certain SQL feature.