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

Method handleEmptyQuery

packages/pg/lib/query.js:116–120  ·  view source on GitHub ↗
(connection)

Source from the content-addressed store, hash-verified

114 // since we pipeline sync immediately after execute we don't need to do anything here
115 // unless we have rows specified, in which case we did not pipeline the initial sync call
116 handleEmptyQuery(connection) {
117 if (this.rows) {
118 connection.sync()
119 }
120 }
121
122 handleError(err, connection) {
123 // need to sync after error during a prepared statement

Callers 1

_handleEmptyQueryMethod · 0.45

Calls 1

syncMethod · 0.80

Tested by

no test coverage detected