Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Created July 5, 2020 07:24
Show Gist options
  • Save jsdecena/f04d2b0b828bb00d0093595567768e2b to your computer and use it in GitHub Desktop.
Save jsdecena/f04d2b0b828bb00d0093595567768e2b to your computer and use it in GitHub Desktop.
Simple TDD in Nodejs database.js
'use strict'
/** @type {import('@adonisjs/framework/src/Env')} */
const Env = use('Env')
/** @type {import('@adonisjs/ignitor/src/Helpers')} */
const Helpers = use('Helpers')
module.exports = {
/*
|--------------------------------------------------------------------------
| Default Connection
|--------------------------------------------------------------------------
|
| Connection defines the default connection settings to be used while
| interacting with SQL databases.
|
*/
connection: Env.get('DB_CONNECTION', 'sqlite'),
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment