module.exports = function(config) { var knex = require('knex')(config); return { getEntity: function (table, where) { return knex(table).where(where).select('*'); } } }