当前位置:网站首页>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
边栏推荐
- Gartner released the prediction of eight major network security trends from 2022 to 2023. Zero trust is the starting point and regulations cover a wider range
- DD's command
- Four dimensional matrix, flip (including mirror image), rotation, world coordinates and local coordinates
- Promise
- Introduction to robotics I. spatial transformation (1) posture, transformation
- Mobilenet series (5): use pytorch to build mobilenetv3 and learn and train based on migration
- Cannot resolve symbol error
- Unity | 实现面部驱动的两种方式
- Redis' cache penetration, cache breakdown, cache avalanche
- Zhuhai's waste gas treatment scheme was exposed
猜你喜欢

vSphere实现虚拟机迁移

VMware Tools installation error: unable to automatically install vsock driver

Finding the nearest common ancestor of binary tree by recursion
![[groovy] compile time metaprogramming (compile time method injection | method injection using buildfromspec, buildfromstring, buildfromcode)](/img/e4/a41fe26efe389351780b322917d721.jpg)
[groovy] compile time metaprogramming (compile time method injection | method injection using buildfromspec, buildfromstring, buildfromcode)

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

VMware Tools安装报错:无法自动安装VSock驱动程序

程序员搞开源,读什么书最合适?

1791. Find the central node of the star diagram / 1790 Can two strings be equal by performing string exchange only once

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

Hcip---ipv6 experiment
随机推荐
Finding the nearest common ancestor of binary tree by recursion
Building core knowledge points
Recommended areas - ways to explore users' future interests
ORA-00030
FFT 学习笔记(自认为详细)
The population logic of the request to read product data on the sap Spartacus home page
Mobilenet series (5): use pytorch to build mobilenetv3 and learn and train based on migration
About error 2003 (HY000): can't connect to MySQL server on 'localhost' (10061)
In the era of industrial Internet, we will achieve enough development by relying on large industrial categories
Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network
关于#数据库#的问题:(5)查询库存表中每本书的条码、位置和借阅的读者编号
Cf:d. insert a progression [about the insert in the array + the nature of absolute value + greedy top-down]
IP storage and query in MySQL
SAP Spartacus home 页面读取 product 数据的请求的 population 逻辑
After Luke zettlemoyer, head of meta AI Seattle research | trillion parameters, will the large model continue to grow?
Mlsys 2020 | fedprox: Federation optimization of heterogeneous networks
Gartner发布2022-2023年八大网络安全趋势预测,零信任是起点,法规覆盖更广
ThreeDPoseTracker项目解析
How to extract MP3 audio from MP4 video files?
I'm interested in watching Tiktok live beyond concert