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

Function parseRowDescriptionMessage

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

Source from the content-addressed store, hash-verified

277}
278
279const parseRowDescriptionMessage = (reader: BufferReader) => {
280 const fieldCount = reader.int16()
281 const message = new RowDescriptionMessage(LATEINIT_LENGTH, fieldCount)
282 for (let i = 0; i < fieldCount; i++) {
283 message.fields[i] = parseField(reader)
284 }
285 return message
286}
287
288const parseField = (reader: BufferReader) => {
289 const name = reader.cstring()

Callers 1

handlePacketMethod · 0.85

Calls 2

parseFieldFunction · 0.85
int16Method · 0.80

Tested by

no test coverage detected