node-query/lib/adapters/Sqlite/index.js

11 lines
218 B
JavaScript

'use strict';
module.exports = config => {
const Implementation = (config.adapter && config.adapter === 'dblite')
? require('./dblite')
: require('./sqlite3');
return new Implementation(config.connection);
};