OP #388 by @ankane. It's a good idea, my current focus is on dbi3, happy to review a PR. CC @gavril0.