Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
带回调或异步/等待的节点 postgres 事务?
我正在运行 Node 7 6 0 它支持 async await node postgres 客户端池支持 async await 并且有一个很好的示例here https github com brianc node pg pool pl
nodejs
postgresql
Transactions
nodepostgres
pg (node-postgres) 是否自动清理数据
我在用node postgres对于生产应用程序 我想知道是否有什么我应该关心的 数据是否自动清理node postgres 我在 github 页面上找不到任何相关信息 https github com brianc node postg
nodejs
pg
nodepostgres
何时断开连接以及何时结束 pg 客户端或池
我的堆栈是node express 和pg 模块 我真的尝试通过文档和一些过时的教程来理解 我不知道何时以及如何断开和结束客户端 对于某些路线 我决定使用游泳池 这是我的代码 const pool new pg Pool user pool
nodejs
postgresql
nodepostgres
node-postgres 是否支持多个结果集
我有一个返回多个结果集的 PostgresQL 函数 我可以毫无问题地在 net 中提取这些结果集 所以我知道我的函数可以正常工作 但我在使用 node postgres 时遇到了麻烦 结果对象返回一个包含 7 个项目的数组 该数组与返回的
nodejs
postgresql
nodepostgres
Node.js - PostgreSQL (pg):客户端已连接。您不能重复使用客户端
我只是想编写简单的注册 登录系统 我正在尝试查找用户名是否存在 步骤如下 Go 本地主机 3000 用户 注册 page 填写所有字段并单击注册按钮 检查我的命令行如果用户名存在 它应该使用 console log 打印它 到目前为止一切正
javascript
nodejs
postgresql
Express
nodepostgres
错误:与nodejs程序连接时连接ECONNREFUSED 127.0.0.1:5432 [重复]
这个问题在这里已经有答案了 我在 CentOS 8 机器上设置了一个 postgresql 服务器 并在同一台机器上运行了一个 js 程序 使用pg图书馆 const Pool require pg const pool new Pool
javascript
nodepostgres
PostgreSQL12
centos8
Jest TLSWRAP 使用简单的 node-postgres pool.query() 修复了 setTimeout 延迟的打开句柄错误,但为什么呢?
当我运行以下测试时 afterAll async gt await runDbBuild await pool end describe queries newteetypes select all gt test Test 1 objec
nodejs
Express
jestjs
nodepostgres
您可以在 Next.js API 中保持 PostgreSQL 连接处于活动状态吗?
我正在将 Next js 用于我的业余项目 我有一个托管在 ElephantSQL 上的 PostgreSQL 数据库 在 Next js 项目中 我使用 apollo server micro 包设置了 GraphQL API 在设置 G
nodejs
postgresql
Nextjs
Serverless
nodepostgres
node.js、pg、postgresql 和插入查询(应用程序挂起)
我有以下简单的节点应用程序用于将数据插入 postgres 数据库 var pg require pg var dbUrl tcp user psw localhost 5432 test db pg connect dbUrl funct
nodejs
nodepostgres
如何使用node-postgres设置模式
我正在尝试查询名为的模式DOCUMENT在我的 postgres 数据库中使用节点 postgres https www npmjs com package pg 我似乎无法针对指定架构运行查询 该查询使用 psql 直接针对 postgr
javascript
nodejs
postgresql
nodepostgres
.query 字符串中的美元符号 ('$') 是什么意思?
什么是 该声明中的符号含义 SQL Query gt Update Data client query UPDATE items SET text 1 complete 2 WHERE id 3 data text data complet
nodejs
postgresql
terminology
nodepostgres
dollarsign
连接 Heroku PostgreSQL 数据库时出现身份验证错误
我正在使用 PostgreSQL 开发一个 Node js 应用程序并托管在 Heroku 上 我的问题是我收到如下身份验证错误 14 32 05 web 1 error no pg hba conf entry for host 193
postgresql
nodejs
authentication
nodepostgres
在node.js中导入sql文件并针对PostgreSQL执行
我正在寻找一种有效的方法来获取原始 sql 文件并针对 postgres 数据库同步执行它 类似于运行它psql 我有一个 sql 文件 它创建所有数据库 导入数据等 我需要使用 node js 执行此操作 但找不到任何自动执行此操作的模块
javascript
sql
nodejs
postgresql
nodepostgres
node-postgres如何转义参数?
我知道关于参数化查询 但由于我必须以编程方式构造哪里条件 计算参数的数量并构建参数数组是一项比简单地调用escape需要时发挥作用 所以 node postgres 中有参数转义函数吗 Yes since this PR there are
nodejs
postgresql
nodepostgres
具有大量查询的node-postgres
我刚刚开始使用node js 和postgres 使用node postgres 我尝试做的事情之一是编写一个简短的 js 来填充我的数据库 使用一个包含大约 200 000 个条目的文件 我注意到一段时间后 不到 10 秒 我开始收到 错
nodejs
postgresql
nodepostgres