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

Method end

packages/pg-cursor/index.js:203–209  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

201 // users really shouldn't be calling 'end' here and terminating a connection to postgres
202 // via the low level connection.end api
203 end(cb) {
204 if (this.state !== 'initialized') {
205 this.connection.sync()
206 }
207 this.connection.once('end', cb)
208 this.connection.end()
209 }
210
211 close(cb) {
212 let promise

Callers 8

pool.jsFile · 0.45
close.jsFile · 0.45
transactions.jsFile · 0.45
query-config.jsFile · 0.45
index.jsFile · 0.45
error-handling.jsFile · 0.45
promises.jsFile · 0.45

Calls 1

syncMethod · 0.80

Tested by

no test coverage detected