当前位置:网站首页>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
边栏推荐
- Nacos program connects to mysql8 0+ NullPointerException
- X509 certificate cer format to PEM format
- Wechat applet customer service access to send and receive messages
- Openfaas practice 4: template operation
- Explanation 2 of redis database (redis high availability, persistence and performance management)
- Sword finger offer (2) -- for Huawei
- What is the role of the full connection layer?
- TLS / SSL protocol details (28) differences between TLS 1.0, TLS 1.1 and TLS 1.2
- Node.js ODBC连接PostgreSQL
- adobe illustrator 菜單中英文對照
猜你喜欢
群体智能自主作业智慧农场项目启动及实施方案论证会议
Deep learning - Super parameter setting
Kubernetes详解(九)——资源配置清单创建Pod实战
Wechat applet customer service access to send and receive messages
T2 icloud calendar cannot be synchronized
今日睡眠质量记录76分
Nuxt project: Global get process Env information
Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]
The win10 taskbar notification area icon is missing
如何设计一个良好的API接口?
随机推荐
今日睡眠质量记录76分
Elk installation
Nacos程序连接MySQL8.0+ NullPointerException
自动化测试框架常见类型▏自动化测试就交给软件测评机构
JSON date time date format
Nacos program connects to mysql8 0+ NullPointerException
Ffmpeg installation error: NASM / yasm not found or too old Use --disable-x86asm for a clipped build
Openstack command operation
The life cycle of key value in redis module programming
Functions (Part I)
ffmpeg安装遇错:nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.
Explanation of redis database (I)
Detailed explanation of C language knowledge points - data types and variables [2] - integer variables and constants [1]
How to design a good API interface?
通过 PDO ODBC 将 PHP 连接到 MSSQL
Krpano panorama vtour folder and tour
Share 20 tips for ES6 that should not be missed
Nuxt project: Global get process Env information
Node.js ODBC连接PostgreSQL
Tencent has written a few words, Ali has written them all for a month