MCPcopy
hub / github.com/sequelize/sequelize / getConnectionPid

Function getConnectionPid

test/integration/dialects/postgres/query.test.js:214–220  ·  view source on GitHub ↗
(sequelize)

Source from the content-addressed store, hash-verified

212 }
213
214 async function getConnectionPid(sequelize) {
215 const connection = await sequelize.connectionManager.getConnection();
216 const pid = connection.processID;
217 sequelize.connectionManager.releaseConnection(connection);
218
219 return pid;
220 }
221
222 it('reuses connection after statement timeout', async () => {
223 // client timeout > statement timeout means that the query should fail with a statement timeout

Callers 2

setUpFunction · 0.85
query.test.jsFile · 0.85

Calls 2

getConnectionMethod · 0.65
releaseConnectionMethod · 0.65

Tested by

no test coverage detected