当前位置:网站首页>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
边栏推荐
- Daily practice - February 13, 2022
- Who knows how to modify the data type accuracy of the columns in the database table of Damon
- Cf:d. insert a progression [about the insert in the array + the nature of absolute value + greedy top-down]
- For a deadline, the IT fellow graduated from Tsinghua suddenly died on the toilet
- Questions about database: (5) query the barcode, location and reader number of each book in the inventory table
- 视频直播源码,实现本地存储搜索历史记录
- MIT doctoral thesis | robust and reliable intelligent system using neural symbol learning
- Mobilenet series (5): use pytorch to build mobilenetv3 and learn and train based on migration
- 现货白银的一般操作方法
- Recommended areas - ways to explore users' future interests
猜你喜欢
Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network
Building core knowledge points
Mobilenet series (5): use pytorch to build mobilenetv3 and learn and train based on migration
Cve-2017-11882 reappearance
Convert binary search tree into cumulative tree (reverse middle order traversal)
激动人心,2022开放原子全球开源峰会报名火热开启
Study diary: February 13, 2022
Finding the nearest common ancestor of binary search tree by recursion
KDD 2022 | EEG AI helps diagnose epilepsy
After 95, the CV engineer posted the payroll and made up this. It's really fragrant
随机推荐
Gartner发布2022-2023年八大网络安全趋势预测,零信任是起点,法规覆盖更广
Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network
Leetcode 208. 实现 Trie (前缀树)
[Arduino syntax - structure]
[groovy] compile time meta programming (AST syntax tree conversion with annotations | define annotations and use groovyasttransformationclass to indicate ast conversion interface | ast conversion inte
Tcpdump: monitor network traffic
VMware Tools安装报错:无法自动安装VSock驱动程序
Vulhub vulnerability recurrence 74_ Wordpress
IP storage and query in MySQL
golang mqtt/stomp/nats/amqp
Novice entry depth learning | 3-6: optimizer optimizers
Fibonacci number
JVM_ 15_ Concepts related to garbage collection
Overview of Zhuhai purification laboratory construction details
[groovy] compile time metaprogramming (compile time method interception | find the method to be intercepted in the myasttransformation visit method)
Leetcode daily question solution: 1189 Maximum number of "balloons"
MYSQL---查询成绩为前5名的学生
Who knows how to modify the data type accuracy of the columns in the database table of Damon
几百行代码实现一个 JSON 解析器
Cf:h. maximum and [bit operation practice + K operations + maximum and]