I created https://github.com/a2lix/schemql that maybe could fit your demand.
6 karma · joined December 22, 2010
I met this week "Standardized Interface for SQL Database Drivers" https://github.com/halvardssm/stdext/pull/6 by example then https://github.com/WICG/proposals/issues too.
Huge work to get everybody on the same page (About my previous example, it's not well engaged by example https://github.com/nodejs/node/issues/55419), but when done and right done, it's a huge win for developers.
PHP PSR, RFC & co are the way.
p { display: block !important }
Github repository of the project https://github.com/vdel26/tinychart (From comments of http://www.producthunt.com/posts/tinychart)