当前位置:网站首页>Node. JS ODBC connection PostgreSQL
Node. JS ODBC connection PostgreSQL
2022-04-23 15:26: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://yzsam.com/2022/04/202204231525131111.html
边栏推荐
猜你喜欢
Mysql database explanation (8)
API gateway / API gateway (II) - use of Kong - load balancing
Differential privacy (background)
Kubernetes详解(十一)——标签与标签选择器
8.4 realization of recurrent neural network from zero
Basic operation of sequential stack
如何设计一个良好的API接口?
Nuxt project: Global get process Env information
How to design a good API interface?
Have you learned the basic operation of circular queue?
随机推荐
Detailed explanation of MySQL connection query
How to write the keywords in the cover and title? As we media, why is there no video playback
Tun equipment principle
Three uses of kprobe
MySQL sync could not find first log file name in binary log index file error
Fill in the next right node pointer II of each node [classical hierarchy traversal | regarded as linked list]
Kubernetes详解(九)——资源配置清单创建Pod实战
G007-HWY-CC-ESTOR-03 华为 Dorado V6 存储仿真器搭建
adobe illustrator 菜单中英文对照
JUC学习记录(2022.4.22)
kubernetes之常用Pod控制器的使用
Differential privacy (background)
Nacos program connects to mysql8 0+ NullPointerException
Detailed analysis of SQL combat of Niuke database (26-30)
Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]
Compiling OpenSSL
Deep learning - Super parameter setting
推荐搜索 常用评价指标
Five data types of redis
Set onedrive or Google drive as a drawing bed in upic for free