File: client_sessions.md

package info (click to toggle)
mongo-cxx-driver 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,832 kB
  • sloc: cpp: 61,365; python: 1,436; sh: 356; xml: 253; perl: 215; makefile: 21
file content (22 lines) | stat: -rw-r--r-- 577 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Create a Client Session

## Basic Usage

@snippet api/mongocxx/examples/client_sessions/create/basic.cpp Example

## With Options

@snippet api/mongocxx/examples/client_sessions/create/with_options.cpp Example

# Use a Client Session

@see
- [Causal Consistency and Read and Write Concerns (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/causal-consistency-read-write-concerns/)

## Basic Usage

@snippet api/mongocxx/examples/client_sessions/use/basic.cpp Example

## With Transactions

@snippet api/mongocxx/examples/client_sessions/use/transactions.cpp Example