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.
Some examples using this method:
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.
Some examples using this method:
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".
Some examples using this method:
The items on this page are in the following plugins: MBS MongoDB Plugin.