MCPcopy Create free account
hub / github.com/porsager/postgres / handle

Function handle

cjs/src/subscribe.js:119–127  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

117 }
118
119 function handle(a, b) {
120 const path = b.relation.schema + '.' + b.relation.table
121 call('*', a, b)
122 call('*:' + path, a, b)
123 b.relation.keys.length && call('*:' + path + '=' + b.relation.keys.map(x => a[x.name]), a, b)
124 call(b.command, a, b)
125 call(b.command + ':' + path, a, b)
126 b.relation.keys.length && call(b.command + ':' + path + '=' + b.relation.keys.map(x => a[x.name]), a, b)
127 }
128
129 function pong() {
130 const x = Buffer.alloc(34)

Callers 1

parseFunction · 0.70

Calls 1

callFunction · 0.70

Tested by

no test coverage detected