MCPcopy
hub / github.com/sequelize/sequelize / cleanup

Method cleanup

lib/transaction.js:163–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 }
162
163 cleanup() {
164 // Don't release the connection if there's a parent transaction or
165 // if we've already cleaned up
166 if (this.parent || this.connection.uuid === undefined) return;
167
168 this._clearCls();
169 const res = this.sequelize.connectionManager.releaseConnection(this.connection);
170 this.connection.uuid = undefined;
171 return res;
172 }
173
174 _clearCls() {
175 const cls = this.sequelize.constructor._cls;

Callers 3

transactionMethod · 0.95
commitMethod · 0.95
rollbackMethod · 0.95

Calls 2

_clearClsMethod · 0.95
releaseConnectionMethod · 0.65

Tested by

no test coverage detected