2016-11-18 21:59:22 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = config => {
|
2016-11-22 18:26:43 -05:00
|
|
|
const Implementation = (config.native)
|
|
|
|
? require('./sqlite3')
|
|
|
|
: require('./dblite');
|
2016-11-18 21:59:22 -05:00
|
|
|
|
|
|
|
return new Implementation(config.connection);
|
|
|
|
};
|
|
|
|
|