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

Method handleCommandComplete

packages/pg/lib/query.js:102–110  ·  view source on GitHub ↗
(msg, connection)

Source from the content-addressed store, hash-verified

100 }
101
102 handleCommandComplete(msg, connection) {
103 this._checkForMultirow()
104 this._result.addCommandComplete(msg)
105 // need to sync after each command complete of a prepared statement
106 // if we were using a row count which results in multiple calls to _getRows
107 if (this.rows) {
108 connection.sync()
109 }
110 }
111
112 // if a named prepared statement is created with empty query text
113 // the backend will send an emptyQuery message but *not* a command complete message

Callers 1

Calls 3

_checkForMultirowMethod · 0.95
addCommandCompleteMethod · 0.80
syncMethod · 0.80

Tested by

no test coverage detected