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