Skip to content

Commit 0d87cfa

Browse files
committed
wip
1 parent 5b8198e commit 0d87cfa

22 files changed

+159
-145
lines changed
File renamed without changes.

source/connect.txt

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Connect to MongoDB
2525
Create a MongoClient </connect/mongoclient>
2626
Choose a Connection Target </connect/connection-targets>
2727
Specify Connection Options </connect/connection-options>
28-
Configure TLS </connect/tls>
2928
Compress Network Traffic </connect/network-compression>
3029
Customize Server Selection </connect/server-selection>
3130
Stable API </connect/stable-api>
@@ -85,81 +84,6 @@ Replica Set
8584
uri = "mongodb://<replica set member>:<port>/?replicaSet=<replica set name>"
8685
client = MongoClient(uri)
8786

88-
Transport Layer Security (TLS)
89-
------------------------------
90-
91-
Enable TLS
92-
~~~~~~~~~~
93-
94-
.. include:: /includes/connect/tls-tabs.rst
95-
96-
To learn more about enabling TLS, see :ref:`pymongo-enable-tls` in
97-
the TLS configuration guide.
98-
99-
Specify a Certificate Authority (CA) File
100-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101-
102-
.. include:: /includes/connect/ca-file-tabs.rst
103-
104-
To learn more about specifying a CA file, see :ref:`pymongo-specify-ca-file` in
105-
the TLS configuration guide.
106-
107-
Disable OCSP Checks
108-
~~~~~~~~~~~~~~~~~~~
109-
110-
.. include:: /includes/connect/ocsp-tabs.rst
111-
112-
To learn more about disabling OCSP checks, see :ref:`pymongo-disable-ocsp` in
113-
the TLS configuration guide.
114-
115-
Specify a Certificate Revocation List (CRL)
116-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
117-
118-
.. include:: /includes/connect/crl-tabs.rst
119-
120-
To learn more about specifying a CRL, see :ref:`pymongo-crl` in
121-
the TLS configuration guide.
122-
123-
Present a Client Certificate
124-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
125-
126-
.. include:: /includes/connect/client-cert-tabs.rst
127-
128-
To learn more about specifying a client certificate, see :ref:`pymongo-client-cert` in
129-
the TLS configuration guide.
130-
131-
Provide a Certificate Key File Password
132-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133-
134-
.. include:: /includes/connect/key-file-password.rst
135-
136-
To learn more about providing a key file password, see :ref:`pymongo-key-file-password` in
137-
the TLS configuration guide.
138-
139-
Allow Insecure TLS
140-
~~~~~~~~~~~~~~~~~~
141-
142-
.. include:: /includes/connect/insecure-tls-tabs.rst
143-
144-
To learn more about allowing insecure TLS, see :ref:`pymongo-insecure-tls` in
145-
the TLS configuration guide.
146-
147-
Disable Certificate Validation
148-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
149-
150-
.. include:: /includes/connect/disable-cert-validation-tabs.rst
151-
152-
To learn more about disabling certificate validation, see :ref:`pymongo-insecure-tls` in
153-
the TLS configuration guide.
154-
155-
Disable Hostname Verification
156-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
157-
158-
.. include:: /includes/connect/disable-host-verification-tabs.rst
159-
160-
To learn more about disabling hostname verification, see :ref:`pymongo-insecure-tls` in
161-
the TLS configuration guide.
162-
16387
Network Compression
16488
-------------------
16589

source/crud.txt

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
.. _pymongo-crud:
2+
3+
===============
4+
CRUD Operations
5+
===============
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
.. facet::
14+
:name: genre
15+
:values: reference
16+
17+
.. meta::
18+
:description: Learn how to use {+driver-short+} to read and write MongoDB data.
19+
:keywords: usage examples, query, find, code example, save, create
20+
21+
.. toctree::
22+
:titlesonly:
23+
:maxdepth: 1
24+
25+
Insert Documents </insert>
26+
Query Documents </query>
27+
Update Documents </update>
28+
Delete Documents </delete>
29+
Bulk Write Operations </write/bulk-write>
30+
Transactions </write/transactions>
31+
text search
32+
configure
33+
retryable reads
34+
retryable writes
35+
Store Large Files </write/gridfs>
36+
geospatial
37+
38+
Overview
39+
--------
40+
41+
This page contains code examples that show how to connect your Python application
42+
to MongoDB with various settings.
43+
44+
.. tip::
45+
46+
To learn more about the connection options on this page, see the link
47+
provided in each section.
48+
49+
To use a connection example from this page, copy the code example into the
50+
:ref:`sample application <pymongo-connect-sample>` or your own application.
51+
Be sure to replace all placeholders in the code examples, such as ``<hostname>``, with
52+
the relevant values for your MongoDB deployment.
53+
54+
.. _pymongo-connect-sample:
55+
56+
.. include:: /includes/usage-examples/sample-app-intro.rst
57+
58+
.. literalinclude:: /includes/usage-examples/connect-sample-app.py
59+
:language: python
60+
:copyable: true
61+
:linenos:
62+
:emphasize-lines: 4-6
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)