mongoc_client_session_with_transaction_cb_t
mongoc_client_session_with_transaction_cb_t
- Provided by: libmongoc-doc (Version: 1.21.0-1build1)
- Source: mongo-c-driver
- Report a bug
mongoc_client_session_with_transaction_cb_t
typedef bool (*mongoc_client_session_with_transaction_cb_t) ( mongoc_client_session_t *session, void *ctx, bson_t **reply, bson_error_t *error);
Provide this callback to mongoc_client_session_with_transaction. The callback should run a sequence of operations meant to be contained within a transaction. The callback should not attempt to start or commit transactions.
Returns true for success and false on failure. If cb returns false then it should also set error.
SEE ALSO:
mongoc_client_session_with_transaction
MongoDB, Inc
2017-present, MongoDB, Inc