File tree Expand file tree Collapse file tree 6 files changed +141
-0
lines changed
core/queryable-encryption/tutorials/gcp
includes/queryable-encryption/tutorials/automatic/gcp Expand file tree Collapse file tree 6 files changed +141
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ Before You Get Started
36
36
37
37
.. tabs::
38
38
39
+ .. tab:: Mongosh
40
+ :tabid: shell
41
+
42
+ `Complete Mongosh Application <{+sample-app-url-qe+}/mongosh/gcp/reader/>`__
43
+
39
44
.. tab:: Node.js
40
45
:tabid: nodejs
41
46
@@ -100,6 +105,12 @@ your application to see relevant code samples.
100
105
101
106
.. tabs-drivers::
102
107
108
+ .. tab::
109
+ :tabid: shell
110
+
111
+ To view the complete code for making a {+dek-long+}, see
112
+ `the {+qe+} sample application repository <{+sample-app-url-qe+}/mongosh/gcp/reader/make_data_key.js>`__.
113
+
103
114
.. tab::
104
115
:tabid: nodejs
105
116
@@ -143,6 +154,12 @@ your application to see relevant code samples.
143
154
144
155
.. tabs-drivers::
145
156
157
+ .. tab::
158
+ :tabid: shell
159
+
160
+ To view the complete code for inserting an encrypted document, see
161
+ `the {+qe+} sample application repository <{+sample-app-url-qe+}/mongosh/gcp/reader/insert_encrypted_document.js>`__.
162
+
146
163
.. tab::
147
164
:tabid: nodejs
148
165
@@ -182,6 +199,12 @@ your application to see relevant code samples.
182
199
183
200
.. tabs-drivers::
184
201
202
+ .. tab::
203
+ :tabid: shell
204
+
205
+ To view the complete code for finding an encrypted document, see
206
+ `the {+qe+} sample application repository <{+sample-app-url-qe+}/mongosh/gcp/reader/insert_encrypted_document.js>`__.
207
+
185
208
.. tab::
186
209
:tabid: nodejs
187
210
Original file line number Diff line number Diff line change 8
8
9
9
.. tabs-drivers ::
10
10
11
+ .. tab ::
12
+ :tabid: shell
13
+
14
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/insert_encrypted_document.js
15
+ :start-after: start-key-vault
16
+ :end-before: end-key-vault
17
+ :language: javascript
18
+ :dedent:
19
+ :caption: insert_encrypted_document.js
20
+
11
21
.. tab ::
12
22
:tabid: nodejs
13
23
64
74
65
75
.. tabs-drivers ::
66
76
77
+ .. tab ::
78
+ :tabid: shell
79
+
80
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/insert_encrypted_document.js
81
+ :start-after: start-kmsproviders
82
+ :end-before: end-kmsproviders
83
+ :language: javascript
84
+ :dedent:
85
+ :caption: insert_encrypted_document.js
86
+
67
87
.. tab ::
68
88
:tabid: nodejs
69
89
118
138
119
139
.. tabs-drivers ::
120
140
141
+ .. tab ::
142
+ :tabid: shell
143
+
144
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/insert_encrypted_document.js
145
+ :start-after: start-schema
146
+ :end-before: end-schema
147
+ :language: javascript
148
+ :dedent:
149
+ :caption: insert_encrypted_document.js
150
+
121
151
.. tab ::
122
152
:tabid: nodejs
123
153
172
202
173
203
.. tabs-drivers ::
174
204
205
+ .. tab ::
206
+ :tabid: shell
207
+
208
+ .. code-block :: none
209
+
210
+ // mongosh does not require you to specify the
211
+ // location of the {+shared-library+}
212
+
175
213
.. tab ::
176
214
:tabid: nodejs
177
215
231
269
232
270
.. tabs-drivers ::
233
271
272
+ .. tab ::
273
+ :tabid: shell
274
+
275
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/insert_encrypted_document.js
276
+ :start-after: start-client
277
+ :end-before: end-client
278
+ :language: javascript
279
+ :dedent:
280
+ :caption: insert_encrypted_document.js
281
+
234
282
.. tab ::
235
283
:tabid: nodejs
236
284
Original file line number Diff line number Diff line change 12
12
13
13
.. tabs-drivers ::
14
14
15
+ .. tab ::
16
+ :tabid: shell
17
+
18
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/make_data_key.js
19
+ :start-after: start-kmsproviders
20
+ :end-before: end-kmsproviders
21
+ :language: javascript
22
+ :dedent:
23
+ :caption: make_data_key.js
24
+
15
25
.. tab ::
16
26
:tabid: nodejs
17
27
79
89
80
90
.. tabs-drivers ::
81
91
92
+ .. tab ::
93
+ :tabid: shell
94
+
95
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/make_data_key.js
96
+ :start-after: start-datakeyopts
97
+ :end-before: end-datakeyopts
98
+ :language: javascript
99
+ :dedent:
100
+ :caption: make_data_key.js
101
+
82
102
.. tab ::
83
103
:tabid: nodejs
84
104
147
167
148
168
.. tabs-drivers ::
149
169
170
+ .. tab ::
171
+ :tabid: shell
172
+
173
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/make_data_key.js
174
+ :start-after: start-create-dek
175
+ :end-before: end-create-dek
176
+ :language: javascript
177
+ :dedent:
178
+ :caption: make_data_key.js
179
+
150
180
.. tab ::
151
181
:tabid: nodejs
152
182
204
234
205
235
.. tabs-drivers ::
206
236
237
+ .. tab ::
238
+ :tabid: shell
239
+
240
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/make_data_key.js
241
+ :start-after: start-create-enc-collection
242
+ :end-before: end-create-enc-collection
243
+ :language: javascript
244
+ :dedent:
245
+ :caption: make_data_key.js
246
+
207
247
.. tab ::
208
248
:tabid: nodejs
209
249
Original file line number Diff line number Diff line change @@ -8,6 +8,16 @@ a client that is not configured for automatic {+qe+}.
8
8
9
9
.. tabs-drivers ::
10
10
11
+ .. tab ::
12
+ :tabid: shell
13
+
14
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/insert_encrypted_document.js
15
+ :start-after: start-find
16
+ :end-before: end-find
17
+ :caption: insert_encrypted_document.js
18
+ :language: javascript
19
+ :dedent:
20
+
11
21
.. tab ::
12
22
:tabid: nodejs
13
23
Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ snippet:
7
7
8
8
.. tabs-drivers ::
9
9
10
+ .. tab ::
11
+ :tabid: shell
12
+
13
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/insert_encrypted_document.js
14
+ :start-after: start-insert
15
+ :end-before: end-insert
16
+ :language: javascript
17
+ :dedent:
18
+ :caption: insert_encrypted_document.js
19
+
10
20
.. tab ::
11
21
:tabid: nodejs
12
22
Original file line number Diff line number Diff line change @@ -5,6 +5,16 @@ Create a unique index on the ``keyAltNames`` field in your
5
5
6
6
.. tabs-drivers ::
7
7
8
+ .. tab ::
9
+ :tabid: shell
10
+
11
+ .. literalinclude :: /includes/generated/in-use-encryption/queryable-encryption/mongosh/gcp/reader/make_data_key.js
12
+ :start-after: start-create-index
13
+ :end-before: end-create-index
14
+ :caption: make_data_key.js
15
+ :language: javascript
16
+ :dedent:
17
+
8
18
.. tab ::
9
19
:tabid: nodejs
10
20
You can’t perform that action at this time.
0 commit comments