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

Method inTransaction

src/sessions.ts:374–376  ·  view source on GitHub ↗

@returns whether this session is currently in a transaction or not

()

Source from the content-addressed store, hash-verified

372
373 /** @returns whether this session is currently in a transaction or not */
374 inTransaction(): boolean {
375 return this.transaction.isActive;
376 }
377
378 /**
379 * Starts a new transaction with the given options.

Callers 15

pinMethod · 0.95
endSessionMethod · 0.95
startTransactionMethod · 0.95
applySessionFunction · 0.80
decorateWithReadConcernFunction · 0.80
resolveOptionsFunction · 0.80
closeFunction · 0.80
isPinnableCommandFunction · 0.80
inActiveTransactionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected