nodejs-restful-jsonapi-seed
Version:
Everything you need to start building a scalable web application.
15 lines (13 loc) • 344 B
JavaScript
/**
* Example of a database handle wrapper.
*
* @see https://www.npmjs.com/package/mongodb#connect-to-mongodb
* @see https://www.npmjs.com/package/mysql#establishing-connections
*
* @export default {Function}
*/
export default callback => {
const dbh = {};
// Connect to your database, return the active handle.
callback(dbh);
};