user.js 263 Bytes
'use strict';

exports.list = function* (ctx) {

  return yield [
    ctx.app.mysqls.get('db1').query('select * from npm_auth'),
    ctx.app.mysqls.get('db2').query('select * from npm_auth'),
    ctx.app.mysqls.get('db3').query('select * from npm_auth'),
  ];
};