当前位置:网站首页>Node.js ODBC连接PostgreSQL
Node.js ODBC连接PostgreSQL
2022-04-23 15:25:00 【allway2】
const odbc = require('odbc');
async function queryData() {
const connection = await odbc.connect('DSN=PostgreSQL35W;UID=postgres;PWD=postgres;');
const data = await connection.query('SELECT * FROM bindata');
console.log(data);
}
queryData();
版权声明
本文为[allway2]所创,转载请带上原文链接,感谢
https://blog.csdn.net/allway2/article/details/124362910
边栏推荐
- Tun model of flannel principle
- Sword finger offer (1) -- for Huawei
- Share 3 tools, edit 5 works at home and earn more than 400
- 推荐搜索 常用评价指标
- Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]
- 让阿里P8都为之着迷的分布式核心原理解析到底讲了啥?看完我惊了
- The win10 taskbar notification area icon is missing
- UML学习_day2
- Subnet division of flannel principle
- 网站某个按钮样式爬取片段
猜你喜欢
Tun equipment principle
Detailed explanation of C language knowledge points -- data types and variables [1] - carry counting system
G007-HWY-CC-ESTOR-03 华为 Dorado V6 存储仿真器搭建
Squid agent
8.4 realization of recurrent neural network from zero
Reptile exercises (1)
推荐搜索 常用评价指标
8.5 concise implementation of cyclic neural network
木木一路走好呀
Differential privacy (background)
随机推荐
setcontext getcontext makecontext swapcontext
Kubernetes详解(九)——资源配置清单创建Pod实战
A series of problems about the best time to buy and sell stocks
木木一路走好呀
Application of skiplist in leveldb
Sword finger offer (2) -- for Huawei
Mysql database explanation (IX)
TLS / SSL protocol details (28) differences between TLS 1.0, TLS 1.1 and TLS 1.2
On the day of entry, I cried (mushroom street was laid off and fought for seven months to win the offer)
Llvm - generate if else and pH
Ffmpeg installation error: NASM / yasm not found or too old Use --disable-x86asm for a clipped build
Practice of unified storage technology of oppo data Lake
asp. Net method of sending mail using mailmessage
How to use OCR in 5 minutes
Share 3 tools, edit 5 works at home and earn more than 400
Compiling OpenSSL
让阿里P8都为之着迷的分布式核心原理解析到底讲了啥?看完我惊了
Three uses of kprobe
Modify the default listening IP of firebase emulators
Detailed explanation of C language knowledge points - data types and variables [2] - integer variables and constants [1]