All files / example/models/dao user.js

100% Statements 5/5
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13    1x   1x   2x 2x       1x  
'use strict';
 
const db = global.$.lib.db;
 
const user = {
    async getInfoByName(name) {
        const info = await db.query('user', name);
        return info;
    }
};
 
module.exports = user;