当前位置:网站首页>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
边栏推荐
- Nmap: network detection tool and security / port scanner
- [groovy] XML serialization (use markupbuilder to generate XML data | create sub tags under tag closures | use markupbuilderhelper to add XML comments)
- Obstacle detection
- 几百行代码实现一个 JSON 解析器
- 关于#数据库#的问题:(5)查询库存表中每本书的条码、位置和借阅的读者编号
- Cve-2017-11882 reappearance
- Synchronized and reentrantlock
- servlet(1)
- curlpost-php
- Starting from 1.5, build a micro Service Framework - call chain tracking traceid
猜你喜欢

MIT doctoral thesis | robust and reliable intelligent system using neural symbol learning

The inconsistency between the versions of dynamic library and static library will lead to bugs
![[groovy] JSON serialization (convert class objects to JSON strings | convert using jsonbuilder | convert using jsonoutput | format JSON strings for output)](/img/52/021931181ad3f4bef271b4e98105c2.jpg)
[groovy] JSON serialization (convert class objects to JSON strings | convert using jsonbuilder | convert using jsonoutput | format JSON strings for output)

基于DVWA的文件上传漏洞测试

BiShe - College Student Association Management System Based on SSM

VSphere implements virtual machine migration

Xunrui CMS plug-in automatically collects fake original free plug-ins

Pbootcms plug-in automatically collects fake original free plug-ins
![Cf:d. insert a progression [about the insert in the array + the nature of absolute value + greedy top-down]](/img/9e/c933f454a39d906a407e4d415f0b87.png)
Cf:d. insert a progression [about the insert in the array + the nature of absolute value + greedy top-down]
![[pat (basic level) practice] - [simple mathematics] 1062 simplest fraction](/img/b4/3d46a33fa780e5fb32bbfe5ab26a7f.jpg)
[pat (basic level) practice] - [simple mathematics] 1062 simplest fraction
随机推荐
Cf:h. maximum and [bit operation practice + K operations + maximum and]
几百行代码实现一个 JSON 解析器
vSphere实现虚拟机迁移
Logstash clear sincedb_ Path upload records and retransmit log data
[groovy] JSON string deserialization (use jsonslurper to deserialize JSON strings | construct related classes according to the map set)
Dede collection plug-in free collection release push plug-in
Construction plan of Zhuhai food physical and chemical testing laboratory
黄金价格走势k线图如何看?
Zhuhai laboratory ventilation system construction and installation instructions
VMware Tools installation error: unable to automatically install vsock driver
JMeter BeanShell的基本用法 一下语法只能在beanshell中使用
[groovy] JSON serialization (convert class objects to JSON strings | convert using jsonbuilder | convert using jsonoutput | format JSON strings for output)
Dynamic programming -- linear DP
FFT learning notes (I think it is detailed)
Questions about database: (5) query the barcode, location and reader number of each book in the inventory table
Lone brave man
JVM_ 15_ Concepts related to garbage collection
Convert binary search tree into cumulative tree (reverse middle order traversal)
Illustrated network: the principle behind TCP three-time handshake, why can't two-time handshake?
现货白银的一般操作方法