We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i cannot import typeorm to nestgram module , help me @module({ services: [TelegramBotCommandService], controllers: [TelegramBotController], imports: [TypeOrmModule.forRootAsync({ imports: [ConfigModule], inject: [ConfigService], useFactory: (configService: ConfigService) => ({ type: 'mysql', host: configService.get('DB_HOST'), port: configService.get('DB_PORT'), username: configService.get('DB_USERNAME'), password: configService.get('DB_PASSWORD'), database: configService.get('DB_NAME'), entities: [join(__dirname, 'dist/src/**/*.entity.{ts,js}')], synchronize: true, autoLoadEntities: true, logging: true, }), async dataSourceFactory(options) { if (!options) { throw new Error('Invalid options passed'); }
return addTransactionalDataSource(new DataSource(options)); },
}),], }) export class TelegramBotCommandModule {}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i cannot import typeorm to nestgram module , help me
@module({
services: [TelegramBotCommandService],
controllers: [TelegramBotController],
imports: [TypeOrmModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (configService: ConfigService) => ({
type: 'mysql',
host: configService.get('DB_HOST'),
port: configService.get('DB_PORT'),
username: configService.get('DB_USERNAME'),
password: configService.get('DB_PASSWORD'),
database: configService.get('DB_NAME'),
entities: [join(__dirname, 'dist/src/**/*.entity.{ts,js}')],
synchronize: true,
autoLoadEntities: true,
logging: true,
}),
async dataSourceFactory(options) {
if (!options) {
throw new Error('Invalid options passed');
}
}),],
})
export class TelegramBotCommandModule {}
The text was updated successfully, but these errors were encountered: