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

Method handleReadyForQuery

packages/pg/lib/query.js:136–150  ·  view source on GitHub ↗
(con)

Source from the content-addressed store, hash-verified

134 }
135
136 handleReadyForQuery(con) {
137 if (this._canceledDueToError) {
138 return this.handleError(this._canceledDueToError, con)
139 }
140 if (this.callback) {
141 try {
142 this.callback(null, this._results)
143 } catch (err) {
144 process.nextTick(() => {
145 throw err
146 })
147 }
148 }
149 this.emit('end', this._results)
150 }
151
152 submit(connection) {
153 if (typeof this.text !== 'string' && typeof this.name !== 'string') {

Callers 1

_handleReadyForQueryMethod · 0.45

Calls 1

handleErrorMethod · 0.95

Tested by

no test coverage detected