lib/pool-connection.js
function exposeAPI(connection){
    return {

        query: function(stmt, params){
            return _query(connection, stmt, params);
        },

        insert: function(table, data){
            return _insert(connection, table, data);
        },

        fetchRow: function(stmt, params){
            return  _fetchRow(connection, stmt, params);
        },

        fetchAll: function(stmt, params){
            return _fetchAll(connection, stmt, params);
        },

        release: function(){
            return connection.release();
        }
    };
}
function exposeAPI(connection){
    return {

        query: function(stmt, params){
            return _query(connection, stmt, params);
        },

        insert: function(table, data){
            return _insert(connection, table, data);
        },

        fetchRow: function(stmt, params){
            return  _fetchRow(connection, stmt, params);
        },

        fetchAll: function(stmt, params){
            return _fetchAll(connection, stmt, params);
        },

        release: function(){
            return connection.release();
        }
    };
}
function exposeAPI ( connection ) { return { query : function ( stmt , params ) { return _query ( connection , stmt , params ) ; } , insert : function ( table , data ) { return _insert ( connection , table , data ) ; } , fetchRow : function ( stmt , params ) { return _fetchRow ( connection , stmt , params ) ; } , fetchAll : function ( stmt , params ) { return _fetchAll ( connection , stmt , params ) ; } , release : function ( ) { return connection . release ( ) ; } } ; }
expose async api wrapper
expose async api wrapper