keyv-postgres:用于Keyv的PostgreSQL存储适配器

时间:2021-05-03 10:53:31
【文件属性】:
文件名称:keyv-postgres:用于Keyv的PostgreSQL存储适配器
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-03 10:53:31
postgres key-value cache postgresql storage-adapter @ keyv / postgres 用于Keyv的PostgreSQL存储适配器 用于PostgreSQL存储适配器。 需要Postgres 9.5或更高版本才能提供ON CONFLICT支持,以允许表演者进行upsert。 安装 npm install --save keyv @keyv/postgres 用法 const Keyv = require ( 'keyv' ) ; const keyv = new Keyv ( 'postgresql://user:pass@localhost:5432/dbname' ) ; keyv . on ( 'error' , handleConnectionError ) ; 您可以指定table选项。 例如: const keyv = new Keyv ( 'postgresql://user:pass@localhost:54
【文件预览】:
keyv-postgres-master
----.gitignore(1KB)
----package.json(1KB)
----src()
--------index.js(487B)
----.travis.yml(242B)
----LICENSE(1KB)
----README.md(1KB)
----test()
--------test.js(385B)

网友评论