File: uri.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 (33 lines) | stat: -rw-r--r-- 584 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
24
25
26
27
28
29
30
31
32
33
# Create a URI

## Basic Usage

@snippet api/mongocxx/examples/uri/basic_usage.cpp Example

## Default Value

@snippet api/mongocxx/examples/uri/default_value.cpp Example

# Query a URI

## User Credentials

@snippet api/mongocxx/examples/uri/userpass.cpp Example

## List of Hosts

@snippet api/mongocxx/examples/uri/hosts.cpp Example

## Optional Options

@snippet api/mongocxx/examples/uri/optional.cpp Example

## All URI Options

@snippet api/mongocxx/examples/uri/all_options.cpp Example

# Error Handling

## Invalid URI

@snippet api/mongocxx/examples/uri/invalid.cpp Example