当前位置:网站首页>Remember that a version of @nestjs/typeorm^8.1.4 cannot be obtained Env option problem
Remember that a version of @nestjs/typeorm^8.1.4 cannot be obtained Env option problem
2022-07-06 01:12:00 【crayon-shin-chan】
1. brief introduction
stay typeorm in , It could have been through .env File to configure connection options
But after upgrading to @nestjs/typeorm^8.1.4 typeorm^0.3.7 after , This function is removed
2. solve
have access to ConnectionOptionsReader To solve
import { ConnectionOptionsReader } from 'typeorm/connection/ConnectionOptionsReader'
TypeOrmModule.forRootAsync({
useFactory: async () => {
const reader = new ConnectionOptionsReader();
const options = await reader.all()
return options[0]
}
})ConnectionOptionsReader Various configuration files will be loaded internally
边栏推荐
- MCU通过UART实现OTA在线升级流程
- Dedecms plug-in free SEO plug-in summary
- VMware Tools installation error: unable to automatically install vsock driver
- Programmer growth Chapter 9: precautions in real projects
- Cve-2017-11882 reappearance
- Test de vulnérabilité de téléchargement de fichiers basé sur dvwa
- Curlpost PHP
- WGet: command line download tool
- Unity | 实现面部驱动的两种方式
- VMware Tools安装报错:无法自动安装VSock驱动程序
猜你喜欢
![[groovy] XML serialization (use markupbuilder to generate XML data | create sub tags under tag closures | use markupbuilderhelper to add XML comments)](/img/d4/4a33e7f077db4d135c8f38d4af57fa.jpg)
[groovy] XML serialization (use markupbuilder to generate XML data | create sub tags under tag closures | use markupbuilderhelper to add XML comments)

282. Stone consolidation (interval DP)

Introduction to robotics I. spatial transformation (1) posture, transformation

After 95, the CV engineer posted the payroll and made up this. It's really fragrant

Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network

Beginner redis

ADS-NPU芯片架构设计的五大挑战

What is the most suitable book for programmers to engage in open source?

激动人心,2022开放原子全球开源峰会报名火热开启

Unity | 实现面部驱动的两种方式
随机推荐
Use of crawler manual 02 requests
Is chaozhaojin safe? Will it lose its principal
【第30天】给定一个整数 n ,求它的因数之和
Recursive method converts ordered array into binary search tree
JMeter BeanShell的基本用法 一下语法只能在beanshell中使用
KDD 2022 | EEG AI helps diagnose epilepsy
Recursive method to realize the insertion operation in binary search tree
关于#数据库#的问题:(5)查询库存表中每本书的条码、位置和借阅的读者编号
Questions about database: (5) query the barcode, location and reader number of each book in the inventory table
Vulhub vulnerability recurrence 75_ XStream
MCU通过UART实现OTA在线升级流程
A preliminary study of geojson
WGet: command line download tool
Xunrui CMS plug-in automatically collects fake original free plug-ins
小程序容器可以发挥的价值
How to extract MP3 audio from MP4 video files?
282. Stone consolidation (interval DP)
servlet(1)
黄金价格走势k线图如何看?
Zhuhai laboratory ventilation system construction and installation instructions