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

Method flush

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

Source from the content-addressed store, hash-verified

96 }
97
98 public flush(code?: number): Buffer {
99 const result = this.join(code)
100 this.offset = 5
101 this.headerPosition = 0
102 this.buffer = Buffer.allocUnsafe(this.size)
103 return result
104 }
105
106 public clear(): void {
107 this.offset = 5

Callers 13

index.jsFile · 0.45
submitMethod · 0.45
_getRowsMethod · 0.45
startupFunction · 0.45
passwordFunction · 0.45
queryFunction · 0.45
parseFunction · 0.45
bindFunction · 0.45
serializer.tsFile · 0.45

Calls 1

joinMethod · 0.95

Tested by

no test coverage detected