postgres pool:Node pg的Node.js Postgres连接池实现 源码

上传:qqnegotiable13450 浏览: 24 推荐: 0 文件:ZIP 大小:62KB 上传时间:2021-03-25 22:28:02 版权申诉
Postgres-pool 连接池实现。与选项和语法兼容。 为什么? 我们在使用pg-pool时遇到了一些连接超时问题,并且npm尚未更新。 Typescript用于强制类型安全,并且Promise比回调更可取。 入门 简单查询(查询后自动释放连接-推荐) const { Pool } = require ( 'postgres-pool' ) ; const pool = new Pool ( { connectionString : 'postgres://username:pwd@127.0.0.1/db_name' , } ) ; const userId = 42 ; const results = await pool . query ( 'SELECT * from "users" where id=$1' , [ userId ] ) ; console . log
上传资源
用户评论
相关推荐
node pg pool node postgres连接池源码
pg池 此仓库已合并到 monorepo中。 请在那边提交问题和PR! 执照 MIT许可证(MIT)版权所有(c)2016 Brian M.Carlson 特此免费授予获得该软件和相关文档文件(“软件
ZIP
58KB
2021-04-22 08:32
node pg pool node postgres连接池.zip
node-pg-pool, node postgres的连接池 pg池 节点postgres的连接池安装npm i pg-pool pg使用创建要使用pg池,你必须首先创建池的实例var Pool =
.ZIP
37KB
2020-07-23 13:15
purescript node postgres node postgresPureScript绑定源码
Node-postgres的PureScript绑定 用于PureScript绑定(在GitHub上为 )。 安装 克隆项目并安装其依赖项: git clone https://github.com/
ZIP
26KB
2021-04-17 18:00
node postgres源码
节点postgres
ZIP
67KB
2021-04-21 07:25
node_postgres源码
node_postgres
ZIP
54KB
2021-04-21 07:25
node starter postgres使用PostgresNode个人入门源码
节点快速入门 个人项目入门 设置 完成以下步骤以开始一个新项目 # 1. First, clone to your machine git clone https://github.com/zempo
ZIP
49KB
2021-04-25 16:31
node postgres node.jsPostgreSQL客户端源码
节点postgres Node.js的非阻塞PostgreSQL客户端。 纯JavaScript和可选的本机libpq绑定。 莫诺瑞波 此仓库是一个单仓库,它包含核心模块以及一些相关模块。 文献资料
ZIP
321KB
2021-02-08 22:49
postgres Postgres.js Node.js最快全功能PostgreSQL客户端源码
:no_littering: 1250 LOC-0依赖项 :label: ES6标记的模板字符串为核心 :female_sign_selector: 简单表面API :speech_balloon:
ZIP
386KB
2021-02-27 08:29
node api postgres具有Node.jsExpress和PostgresRESTful API源码
带有Node.js,Express和Postgres的RESTful API 使用Express服务器和Postgres数据库在Node.js应用中创建,读取,更新和删除。 数据库 brew inst
ZIP
8KB
2021-02-07 22:37
habits node postgres project源码
habits-node-postgres-project
ZIP
13KB
2021-05-08 20:38
postgres用于PostgresDockerfile源码
Postgres 设置环境变量 export POSTGRES_HOME=/srv/postgres 并将前一行添加到.bashrc文件 启动泊坞窗 docker run --name postgre
ZIP
5KB
2021-04-23 17:23
node pg query使用node postgres运行查询简单helper.zip
node-pg-query, 使用 node postgres运行查询的简单 helper 查询在节点postgres中使用较少的样板运行查询。 节点Posgres的设计和比较详细。这是我在大多数项目
ZIP
6KB
2020-07-26 04:09
postgres github动作中Postgres源码
Postgres Postgres在github中的动作
ZIP
212KB
2021-02-23 06:16
crystal pg水晶postgres驱动程序源码
crystal-pg:水晶的postgres驱动程序
ZIP
49KB
2021-02-17 22:15
pg extend rs RustPostgres扩展库源码
pg-extend-rs:Rust的Postgres扩展库
ZIP
103KB
2021-02-08 18:20