MCPcopy
hub / github.com/brianc/node-postgres / join

Method join

packages/pg-protocol/src/buffer-writer.ts:88–96  ·  view source on GitHub ↗
(code?: number)

Source from the content-addressed store, hash-verified

86 }
87
88 private join(code?: number): Buffer {
89 if (code) {
90 this.buffer[this.headerPosition] = code
91 //length is everything in this packet minus the code
92 const length = this.offset - (this.headerPosition + 1)
93 this.buffer.writeInt32BE(length, this.headerPosition + 1)
94 }
95 return this.buffer.slice(code ? 0 : 5, this.offset)
96 }
97
98 public flush(code?: number): Buffer {
99 const result = this.join(code)

Callers 15

flushMethod · 0.95
idle-timeout.jsFile · 0.45
copy-to.jsFile · 0.45
startSessionFunction · 0.45
md5Function · 0.45
test-buffers.jsFile · 0.45
buffer-list.jsFile · 0.45
createPersonTableFunction · 0.45
api-tests.jsFile · 0.45
699-tests.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected