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

Method handleDataRow

packages/pg/lib/query.js:82–100  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

80 }
81
82 handleDataRow(msg) {
83 let row
84
85 if (this._canceledDueToError) {
86 return
87 }
88
89 try {
90 row = this._result.parseRow(msg.fields)
91 } catch (err) {
92 this._canceledDueToError = err
93 return
94 }
95
96 this.emit('row', row, this._result)
97 if (this._accumulateRows) {
98 this._result.addRow(row)
99 }
100 }
101
102 handleCommandComplete(msg, connection) {
103 this._checkForMultirow()

Callers 1

_handleDataRowMethod · 0.45

Calls 2

parseRowMethod · 0.80
addRowMethod · 0.80

Tested by

no test coverage detected