Skip to content

Commit

Permalink
Merge pull request #124 from AthennaIO/develop
Browse files Browse the repository at this point in the history
chore(configurer): add debug option in env
  • Loading branch information
jlenon7 authored Dec 31, 2023
2 parents 65f6d1d + 0740ed9 commit bb52069
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion configurer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,14 @@ export default class DatabaseConfigurer extends BaseConfigurer {
case 'mongo':
envs =
'\nDB_CONNECTION=mongo\n' +
'DB_DEBUG=false\n' +
'DB_URL=mongodb://root:root@localhost:27017/admin\n'
break
case 'sqlite':
envs =
'\nDB_CONNECTION=sqlite\n' + 'DB_FILENAME=./database/sqlite.db\n'
'\nDB_CONNECTION=sqlite\n' +
'DB_DEBUG=false\n' +
'DB_FILENAME=./database/sqlite.db\n'
break
default:
// eslint-disable-next-line no-case-declarations
Expand All @@ -106,6 +109,7 @@ export default class DatabaseConfigurer extends BaseConfigurer {
`\nDB_CONNECTION=${connection}\n` +
'DB_HOST=localhost\n' +
`DB_PORT=${ports[connection]}\n` +
'DB_DEBUG=false\n' +
'DB_USERNAME=root\n' +
'DB_PASSWORD=root\n' +
'DB_DATABASE=athenna\n'
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/database",
"version": "4.16.0",
"version": "4.17.0",
"description": "The Athenna database handler for SQL/NoSQL.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down

0 comments on commit bb52069

Please sign in to comment.