Skip to content

Instantly share code, notes, and snippets.

@paztek
Created July 20, 2020 07:19
Show Gist options
  • Save paztek/bfa7eb1112d7824ac48f8810ab4727a9 to your computer and use it in GitHub Desktop.
Save paztek/bfa7eb1112d7824ac48f8810ab4727a9 to your computer and use it in GitHub Desktop.
nestjs-elasticsearch-example-1
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