MCPcopy Index your code
hub / github.com/brianc/node-postgres / parseNotificationMessage

Function parseNotificationMessage

packages/pg-protocol/src/parser.ts:272–277  ·  view source on GitHub ↗
(reader: BufferReader)

Source from the content-addressed store, hash-verified

270}
271
272const parseNotificationMessage = (reader: BufferReader) => {
273 const processId = reader.int32()
274 const channel = reader.cstring()
275 const payload = reader.cstring()
276 return new NotificationResponseMessage(LATEINIT_LENGTH, processId, channel, payload)
277}
278
279const parseRowDescriptionMessage = (reader: BufferReader) => {
280 const fieldCount = reader.int16()

Callers 1

handlePacketMethod · 0.85

Calls 2

int32Method · 0.80
cstringMethod · 0.80

Tested by

no test coverage detected