【文件属性】:
文件名称:pg-ipc:PostgreSQL上的IPC LISTENNOTIFYUNLISTEN公开为EventEmitter
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-22 21:32:25
postgres database ipc pubsub JavaScript
pg-ipc
PostgreSQL上的IPC LISTEN / NOTIFY / UNLISTEN公开为EventEmitter
用法
var pgIPC = require ( 'pg-ipc' )
var client = new require ( 'pg' ) . Client ( { ... } )
var ipc = pgIPC ( client )
ipc . on ( 'error' , console . error )
ipc . on ( 'end' , function ( ) {
client . end ( )
} )
ipc . on ( 'someChannel' , function ( msg ) {
// Ignore messages from this process
if ( msg . processId === client
【文件预览】:
pg-ipc-master
----package.json(776B)
----.travis.yml(926B)
----index.js(2KB)
----test.js(3KB)
----README.md(2KB)
----benchmark.js(1005B)