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

11 lines
186 B
JavaScript

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