File: change_streams.md

package info (click to toggle)
mongo-cxx-driver 4.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 14,632 kB
  • sloc: cpp: 60,864; python: 962; sh: 496; xml: 253; perl: 94; makefile: 22
file content (23 lines) | stat: -rw-r--r-- 499 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
23
# Obtain a Change Stream

## From a Client

@snippet api/mongocxx/examples/change_streams/from_client.cpp Example

## From a Database

@snippet api/mongocxx/examples/change_streams/from_database.cpp Example

## From a Collection

@snippet api/mongocxx/examples/change_streams/from_collection.cpp Example

# Use a Change Stream

## Basic Usage

@snippet api/mongocxx/examples/change_streams/basic.cpp Example

## With Pipeline

@snippet api/mongocxx/examples/change_streams/with_pipeline.cpp Example