Created
July 20, 2020 07:19
-
-
Save paztek/bfa7eb1112d7824ac48f8810ab4727a9 to your computer and use it in GitHub Desktop.
nestjs-elasticsearch-example-1
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
import { Module } from '@nestjs/common'; | |
import { SequelizeModule } from '@nestjs/sequelize'; | |
const logger = new Logger('SQL'); | |
@Module({ | |
imports: [ | |
SequelizeModule.forRoot({ | |
logging: (sql) => logger.log(sql), | |
dialect: 'mysql', | |
host: 'localhost', | |
port: 3306, | |
username: 'root', | |
password: 'root', | |
database: 'test', | |
models: [], | |
}), | |
], | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment