The anydb support object for connection. It is useful for example mysql timezone settings. I insert this one line into anydb-sql.js. I hope you will find this useful too.
function extractDialect(adr) {
if (typeof adr === 'object') return adr.adapter;