You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specified as comma-separated key:value pairs, e.g. ``"SERVICE_REALM:foo,CANONICALIZE_HOSTNAME:TRUE"``.
110
+
111
+
* - authSource=String
112
+
- ``:auth_source => String``
113
+
114
+
* - compressors=Strings
115
+
- ``:compressors => Array<String>``
116
+
117
+
Specified as a comma-separated list. Note that the Ruby driver only supports zlib
118
+
compression; however, other drivers may support snappy. For maximum compatibility with
119
+
drivers, specify ``"snappy,zlib"``; if compatibility with other drivers is not a concern,
120
+
specify ``"zlib".`` Compression is not enabled by default and when using MongoDB 4.0 and
121
+
earlier, so zlib compression must be manually enabled on the server in order for the Ruby
122
+
driver to compress wire protocol data.
102
123
103
124
* - connect=String
104
125
- ``:connect => Symbol``
@@ -109,56 +130,81 @@ URI Options Conversions
109
130
* - connectTimeoutMS=Integer
110
131
- ``:connect_timeout => Float``
111
132
112
-
* - socketTimeoutMS=Integer
113
-
- ``:socket_timeout => Float``
133
+
* - fsync=Boolean
134
+
- ``{ :write => { :fsync => true|false }}``
114
135
115
-
* - serverSelectionTimeoutMS=Integer
116
-
- ``:server_selection_timeout => Float``
136
+
* - heartbeatFrequencyMS=Integer
137
+
- ``:heartbeat_frequency => Float``
138
+
139
+
* - journal=Boolean
140
+
- ``{ :write => { :j => true|false }}``
117
141
118
142
* - localThresholdMS=Integer
119
143
- ``:local_threshold => Float``
120
144
145
+
* - maxIdleTimeMS=Integer
146
+
- ``:max_idle_time => Float``
147
+
121
148
* - maxPoolSize=Integer
122
149
- ``:max_pool_size => Integer``
123
150
124
151
* - minPoolSize=Integer
125
152
- ``:min_pool_size => Integer``
126
153
127
-
* - waitQueueTimeoutMS=Integer
128
-
- ``:wait_queue_timeout => Float``
154
+
* - readPreference=String
155
+
- ``{ :read => { :mode => Symbol }}``
129
156
130
-
* - w=Integer|String
131
-
- ``{ :write => { :w => Integer|String }}``
157
+
* - readPreferenceTags=Strings
158
+
- ``{ :read => { :tag_sets => Array<Hash> }}``
132
159
133
-
* - wtimeoutMS=Integer
134
-
- ``{ :write => { :wtimeout => Float }}``
160
+
Each instance of the readPreferenceTags field is a comma-separated key:value pair which will appear in the :tag_sets array in the order they are specified. For instance, ``"readPreferenceTags=dc:ny,rack:1&readPreferenceTags=dc:ny"`` will be converted to ``[ { 'dc' => 'ny', 'rack' => '1' }, { 'dc' => 'ny' }]``.
135
161
136
-
* - journal=Boolean
137
-
- ``{ :write => { :j => true|false }}``
162
+
* - replicaSet=String
163
+
- ``:replica_set => String``
138
164
139
-
* - fsync=Boolean
140
-
- ``{ :write => { :fsync => true|false }}``
165
+
* - serverSelectionTimeoutMS=Integer
166
+
- ``:server_selection_timeout => Float``
141
167
142
-
* - readPreference=String
143
-
- ``{ :read => { :mode => Symbol }}``
168
+
* - socketTimeoutMS=Integer
169
+
- ``:socket_timeout => Float``
144
170
145
-
* - readPreferenceTags=Strings
146
-
- ``{ :read => { :tag_sets => Array<String> }}``
171
+
* - tls=Boolean
172
+
- ``:ssl => boolean``
147
173
148
-
* - authSource=String
149
-
- ``:auth_source => String``
174
+
* - tlsAllowInvalidCertificates=Boolean
175
+
- ``:ssl_verify => boolean``
150
176
151
-
* - authMechanism=String
152
-
- ``:auth_mech => Symbol``
177
+
Because ``tlsAllowInvalidCertificates`` uses ``true`` to signify that verification
178
+
should be disabled and ``ssl_verify`` uses ``false`` to signify that verification should be
179
+
disabled, the boolean is inverted before being used to set ``ssl_verify``.
0 commit comments