MCPcopy
hub / github.com/mongodb/node-mongodb-native / inActiveTransaction

Function inActiveTransaction

src/sdam/server.ts:575–577  ·  view source on GitHub ↗
(session: ClientSession | undefined, cmd: Document)

Source from the content-addressed store, hash-verified

573}
574
575function inActiveTransaction(session: ClientSession | undefined, cmd: Document) {
576 return session && session.inTransaction() && !isTransactionCommand(cmd);
577}
578
579/** this checks the retryWrites option passed down from the client options, it
580 * does not check if the server supports retryable writes */

Callers 1

decorateCommandErrorMethod · 0.85

Calls 2

isTransactionCommandFunction · 0.90
inTransactionMethod · 0.80

Tested by

no test coverage detected