1MONGOC_CLIENT_SESSION_WITH_TRANSMAoMCnOTgNIoGODONBC__CCCBL_DITrE(iN3vT)e_rSESSION_WITH_TRANSACTION_CB_T(3)
2
3
4

NAME

6       mongoc_client_session_with_transaction_cb_t     -    mongoc_client_ses‐
7       sion_with_transaction_cb_t
8

SYNOPSIS

10          typedef bool (*mongoc_client_session_with_transaction_cb_t) (
11             mongoc_client_session_t *session,
12             void *ctx,
13             bson_t **reply,
14             bson_error_t *error);
15
16       Provide this callback  to  mongoc_client_session_with_transaction.  The
17       callback  should  run  a  sequence  of operations meant to be contained
18       within a transaction.  The callback should not attempt to start or com‐
19       mit transactions.
20

PARAMETERS

22       · session: A mongoc_client_session_t.
23
24       · ctx:  A  void*  set  to  the  the  user-provided  ctx  passed to mon‐
25         goc_client_session_with_transaction.
26
27       · reply: An optional location for a bson_t or NULL. The callback should
28         set  this  if  it runs any operations against the server and receives
29         replies.
30
31       · error: A bson_error_t. The callback should set this  if  it  receives
32         any errors while running operations against the server.
33

RETURN

35       Returns true for success and false on failure. If cb returns false then
36       it should also set error.
37

SEE ALSO

39       mongoc_client_session_with_transaction
40

AUTHOR

42       MongoDB, Inc
43
45       2017-present, MongoDB, Inc
46
47
48
49
501.15.2                          MNOoNvGO0C6_,CL2I0E1N9T_SESSION_WITH_TRANSACTION_CB_T(3)
Impressum