Created
July 5, 2020 07:24
-
-
Save jsdecena/f04d2b0b828bb00d0093595567768e2b to your computer and use it in GitHub Desktop.
Simple TDD in Nodejs database.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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