@@ -92,111 +92,147 @@ URI Options Conversions
92
92
93
93
.. list-table::
94
94
:header-rows: 1
95
- :widths: 40 105
95
+ :widths: 40 200 250
96
96
97
97
* - URI Option
98
98
- Ruby Option
99
+ - Notes
99
100
100
101
* - appName=String
101
102
- ``:app_name => String``
103
+ -
102
104
103
105
* - authMechanism=String
104
106
- ``:auth_mech => Symbol``
107
+ -
105
108
106
109
* - authMechanismProperties=Strings
107
- - ``{ :auth_mech_properties => { :service_realm => String, :canonicalize_host_name => true|false, :service_name => String } }``
110
+ - ``{ :auth_mech_properties =>``
111
+ ``{ :service_realm => String,``
112
+ ``:canonicalize_host_name => true|false,``
113
+ ``:service_name => String } }``
114
+ - Specified as comma-separated key:value
115
+ pairs, e.g.
116
+ ``"SERVICE_REALM:foo,CANONICALIZE_HOSTNAME:TRUE"``
108
117
109
118
* - authSource=String
110
119
- ``:auth_source => String``
120
+ -
111
121
112
122
* - compressors=Strings
113
123
- ``:compressors => Array<String>``
124
+ - Specified as a comma-separated list, e.g. "zlib,snappy"
114
125
115
126
* - connect=String
116
127
- ``:connect => Symbol``
128
+ -
117
129
118
130
* - ssl=Boolean
119
131
- ``:ssl => true|false``
132
+ -
120
133
121
134
* - connectTimeoutMS=Integer
122
135
- ``:connect_timeout => Float``
136
+ -
123
137
124
138
* - fsync=Boolean
125
139
- ``{ :write => { :fsync => true|false }}``
140
+ -
126
141
127
142
* - heartbeatFrequencyMS=Integer
128
143
- ``:heartbeat_frequency => Float``
144
+ -
129
145
130
146
* - journal=Boolean
131
147
- ``{ :write => { :j => true|false }}``
148
+ -
132
149
133
150
* - localThresholdMS=Integer
134
151
- ``:local_threshold => Float``
152
+ -
135
153
136
154
* - maxIdleTimeMS=Integer
137
155
- ``:max_idle_time => Float``
156
+ -
138
157
139
158
* - maxPoolSize=Integer
140
159
- ``:max_pool_size => Integer``
160
+ -
141
161
142
162
* - minPoolSize=Integer
143
163
- ``:min_pool_size => Integer``
164
+ -
144
165
145
166
* - readPreference=String
146
167
- ``{ :read => { :mode => Symbol }}``
168
+ -
147
169
148
170
* - readPreferenceTags=Strings
149
- - ``{ :read => { :tag_sets => Array<String> }}``
171
+ - ``{ :read => { :tag_sets => Array<Hash> }}``
172
+ - Each instance of the readPreferenceTags field is a comma-separated key:value pair which will
173
+ appear in the :tag_sets array in the order they are specified. For instance,
174
+ ``"readPreferenceTags=dc:ny,rack:1&readPreferenceTags=dc:ny"`` will be converted to
175
+ ``[ { 'dc' => 'ny', 'rack' => '1' }, { 'dc' => 'ny' }]``.
150
176
151
177
* - replicaSet=String
152
178
- ``:replica_set => String``
179
+ -
153
180
154
181
* - serverSelectionTimeoutMS=Integer
155
182
- ``:server_selection_timeout => Float``
183
+ -
156
184
157
185
* - socketTimeoutMS=Integer
158
186
- ``:socket_timeout => Float``
187
+ -
159
188
160
189
* - tls=Boolean
161
190
- ``:ssl => boolean``
191
+ -
162
192
163
193
* - tlsAllowInvalidCertificates=Boolean
164
194
- ``:ssl_verify => boolean``
165
-
166
- NOTE: Because ``tlsAllowInvalidCertificates`` uses ``true`` to sigify that verification
195
+ - Because ``tlsAllowInvalidCertificates`` uses ``true`` to signify that verification
167
196
should be disabled and ``ssl_verify`` uses ``false`` to signify that verification should be
168
197
disabled, the boolean is inverted before being used to set ``ssl_verify``
169
198
170
199
* - tlsCAFile=String
171
200
- ``:ssl_ca_cert => String``
201
+ -
172
202
173
203
* - tlsClientCertFile=String
174
204
- ``:ssl_cert => String``
205
+ -
175
206
176
207
* - tlsClientKeyFile=String
177
208
- ``:ssl_key => String``
209
+ -
178
210
179
211
* - tlsClientKeyPassword=String
180
212
- ``:ssl_key_pass_phrase => String``
213
+ -
181
214
182
215
* - tlsInsecure=Boolean
183
216
- ``:ssl_verify => boolean``
184
-
185
- NOTE: Because tlsInsecure uses ``true`` to sigify that verification should be disabled and
217
+ - Because tlsInsecure uses ``true`` to signify that verification should be disabled and
186
218
``ssl_verify`` uses ``false`` to signify that verification should be disabled, the boolean
187
219
is inverted before being used to set ``ssl_verify``
188
220
189
221
* - w=Integer|String
190
222
- ``{ :write => { :w => Integer|String }}``
223
+ -
191
224
192
225
* - waitQueueTimeoutMS=Integer
193
226
- ``:wait_queue_timeout => Float``
227
+ -
194
228
195
229
* - wtimeoutMS=Integer
196
230
- ``{ :write => { :wtimeout => Float }}``
231
+ -
197
232
198
233
* - zlibCompressionLevel=Integer
199
234
- ``:zlib_compression_level => Integer``
235
+ -
200
236
201
237
202
238
Ruby Options
0 commit comments