Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to MongoSessionMBS class.
MongoSessionMBS.AbortTransaction
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MongoDB | MBS MongoDB Plugin | 22.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception if there are invalid arguments, such as a session with no transaction in progress. Network or server errors are ignored.
MongoSessionMBS.CommitTransaction as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MongoDB | MBS MongoDB Plugin | 22.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns JSON if the transaction was committed. Raises exception if there are invalid arguments, such as a session with no transaction in progress, or if there is a server or network error.
MongoSessionMBS.Constructor(client as MongoClientMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MongoDB | MBS MongoDB Plugin | 22.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
MongoSessionMBS.StartTransaction
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MongoDB | MBS MongoDB Plugin | 22.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The transaction must be completed with CommitTransaction or AbortTransaction. An in-progress transaction is automatically aborted by destructor.
Raises exception if there are invalid arguments, such as a session with a transaction already in progress.
If you run MongoDB server locally, you may need to configure a replication. Otherwise you get an error like this: "Error 17:20: Transaction numbers are only allowed on a replica set member or mongos".
The items on this page are in the following plugins: MBS MongoDB Plugin.