-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(database): Fix searching for default connection
1 parent
7ddab11
commit 45bcb06
Showing
4 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { HealthModule } from './health/health.module'; | ||
import { DogModule } from './dog/dog.module'; | ||
import { TypeOrmModule } from '@nestjs/typeorm'; | ||
|
||
@Module({ | ||
imports: [HealthModule, DogModule], | ||
imports: [ | ||
HealthModule, | ||
DogModule, | ||
TypeOrmModule.forRoot({ | ||
type: 'mysql', | ||
host: 'localhost', | ||
port: 3306, | ||
username: 'root', | ||
password: 'root', | ||
database: 'test', | ||
synchronize: true, | ||
keepConnectionAlive: true, | ||
retryAttempts: 2, | ||
retryDelay: 1000, | ||
}), | ||
], | ||
}) | ||
export class ApplicationModule {} |
This file contains 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