Skip to content

Instantly share code, notes, and snippets.

View bastienmichaux's full-sized avatar

Bastien M. Bellomo bastienmichaux

View GitHub Profile
@bastienmichaux
bastienmichaux / example.js
Last active July 7, 2017 08:46
db-importer refactoring sketch
//mysql.js
const getConnection = () => foo();
const importTables = () => bar();
const getConstraints = () => xyz();
module.exports = {getConnection, importTables, getConstraints};
//sqlite.js : idem
const getConnection = () => fizz();
const importTables = () => qux();
const getConstraints = () => arg();