.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_CLIENT_SESSION_WITH_TRANSACTION_CB_T" "3" "May 07, 2024" "1.27.1" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX typedef bool (*mongoc_client_session_with_transaction_cb_t) ( mongoc_client_session_t *session, void *ctx, bson_t **reply, bson_error_t *error); .EE .UNINDENT .UNINDENT .sp Provide this callback to \fI\%mongoc_client_session_with_transaction()\fP\&. 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. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBsession\fP: A \fI\%mongoc_client_session_t\fP\&. .IP \(bu 2 \fBctx\fP: A \fBvoid*\fP set to the the user\-provided \fBctx\fP passed to \fI\%mongoc_client_session_with_transaction()\fP\&. .IP \(bu 2 \fBreply\fP: An optional location for a \fI\%bson_t\fP or \fBNULL\fP\&. The callback should set this if it runs any operations against the server and receives replies. .IP \(bu 2 \fBerror\fP: A \fI\%bson_error_t\fP\&. The callback should set this if it receives any errors while running operations against the server. .UNINDENT .SH RETURN .sp Returns \fBtrue\fP for success and \fBfalse\fP on failure. If \fBcb\fP returns \fBfalse\fP then it should also set \fBerror\fP\&. .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 .nf \fI\%mongoc_client_session_with_transaction()\fP .fi .sp .UNINDENT .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .