当前位置:网站首页>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
边栏推荐
- [groovy] compile time metaprogramming (compile time method injection | method injection using buildfromspec, buildfromstring, buildfromcode)
- FFT learning notes (I think it is detailed)
- A preliminary study of geojson
- MobileNet系列(5):使用pytorch搭建MobileNetV3并基于迁移学习训练
- Recursive method to realize the insertion operation in binary search tree
- VSphere implements virtual machine migration
- Building core knowledge points
- Modify the ssh server access port number
- KDD 2022 | EEG AI helps diagnose epilepsy
- The inconsistency between the versions of dynamic library and static library will lead to bugs
猜你喜欢

The population logic of the request to read product data on the sap Spartacus home page

The growth path of test / development programmers, the problem of thinking about the overall situation

VMware Tools installation error: unable to automatically install vsock driver

ORA-00030

Fibonacci number

DOM introduction

Cve-2017-11882 reappearance
![[pat (basic level) practice] - [simple mathematics] 1062 simplest fraction](/img/b4/3d46a33fa780e5fb32bbfe5ab26a7f.jpg)
[pat (basic level) practice] - [simple mathematics] 1062 simplest fraction

Finding the nearest common ancestor of binary search tree by recursion

Recursive method to realize the insertion operation in binary search tree
随机推荐
伦敦银走势中的假突破
Redis' cache penetration, cache breakdown, cache avalanche
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
curlpost-php
Paging of a scratch (page turning processing)
Getting started with devkit
3D模型格式汇总
curlpost-php
Xunrui CMS plug-in automatically collects fake original free plug-ins
95后CV工程师晒出工资单,狠补了这个,真香...
程序员成长第九篇:真实项目中的注意事项
Live broadcast system code, custom soft keyboard style: three kinds of switching: letters, numbers and punctuation
How to extract MP3 audio from MP4 video files?
Ubantu check cudnn and CUDA versions
Nmap: network detection tool and security / port scanner
VMware Tools installation error: unable to automatically install vsock driver
[groovy] compile time meta programming (AST syntax tree conversion with annotations | define annotations and use groovyasttransformationclass to indicate ast conversion interface | ast conversion inte
Zhuhai laboratory ventilation system construction and installation instructions
基於DVWA的文件上傳漏洞測試
Zhuhai's waste gas treatment scheme was exposed