I think this Nimble package does what you need: [https://github.com/jlp765/db](https://github.com/jlp765/db)
The downside is that then your code will depend on `sqlite.dll`, `mysql.dll` etc at the same time and in no language I'm aware of an "interface" solves this problem.
