Skip to content

Commit 889ddd5

Browse files
committed
update URI option documentation
1 parent 61066ca commit 889ddd5

File tree

1 file changed

+42
-7
lines changed

1 file changed

+42
-7
lines changed

docs/tutorials/ruby-driver-create-client.txt

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,111 +92,146 @@ URI Options Conversions
9292

9393
.. list-table::
9494
:header-rows: 1
95-
:widths: 40 105
95+
:widths: 40 150 200
9696

9797
* - URI Option
9898
- Ruby Option
99+
- Notes
99100

100101
* - appName=String
101102
- ``:app_name => String``
103+
-
102104

103105
* - authMechanism=String
104106
- ``:auth_mech => Symbol``
107+
-
105108

106109
* - 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"``
108116

109117
* - authSource=String
110118
- ``:auth_source => String``
119+
-
111120

112121
* - compressors=Strings
113122
- ``:compressors => Array<String>``
123+
- Specified as a comma-separated list, e.g. "zlib,snappy"
114124

115125
* - connect=String
116126
- ``:connect => Symbol``
127+
-
117128

118129
* - ssl=Boolean
119130
- ``:ssl => true|false``
131+
-
120132

121133
* - connectTimeoutMS=Integer
122134
- ``:connect_timeout => Float``
135+
-
123136

124137
* - fsync=Boolean
125138
- ``{ :write => { :fsync => true|false }}``
139+
-
126140

127141
* - heartbeatFrequencyMS=Integer
128142
- ``:heartbeat_frequency => Float``
143+
-
129144

130145
* - journal=Boolean
131146
- ``{ :write => { :j => true|false }}``
147+
-
132148

133149
* - localThresholdMS=Integer
134150
- ``:local_threshold => Float``
151+
-
135152

136153
* - maxIdleTimeMS=Integer
137154
- ``:max_idle_time => Float``
155+
-
138156

139157
* - maxPoolSize=Integer
140158
- ``:max_pool_size => Integer``
159+
-
141160

142161
* - minPoolSize=Integer
143162
- ``:min_pool_size => Integer``
163+
-
144164

145165
* - readPreference=String
146166
- ``{ :read => { :mode => Symbol }}``
167+
-
147168

148169
* - 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' }]``.
150175

151176
* - replicaSet=String
152177
- ``:replica_set => String``
178+
-
153179

154180
* - serverSelectionTimeoutMS=Integer
155181
- ``:server_selection_timeout => Float``
182+
-
156183

157184
* - socketTimeoutMS=Integer
158185
- ``:socket_timeout => Float``
186+
-
159187

160188
* - tls=Boolean
161189
- ``:ssl => boolean``
190+
-
162191

163192
* - tlsAllowInvalidCertificates=Boolean
164193
- ``:ssl_verify => boolean``
165-
166-
NOTE: Because ``tlsAllowInvalidCertificates`` uses ``true`` to sigify that verification
194+
- Because ``tlsAllowInvalidCertificates`` uses ``true`` to signify that verification
167195
should be disabled and ``ssl_verify`` uses ``false`` to signify that verification should be
168196
disabled, the boolean is inverted before being used to set ``ssl_verify``
169197

170198
* - tlsCAFile=String
171199
- ``:ssl_ca_cert => String``
200+
-
172201

173202
* - tlsClientCertFile=String
174203
- ``:ssl_cert => String``
204+
-
175205

176206
* - tlsClientKeyFile=String
177207
- ``:ssl_key => String``
208+
-
178209

179210
* - tlsClientKeyPassword=String
180211
- ``:ssl_key_pass_phrase => String``
212+
-
181213

182214
* - tlsInsecure=Boolean
183215
- ``: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
186217
``ssl_verify`` uses ``false`` to signify that verification should be disabled, the boolean
187218
is inverted before being used to set ``ssl_verify``
188219

189220
* - w=Integer|String
190221
- ``{ :write => { :w => Integer|String }}``
222+
-
191223

192224
* - waitQueueTimeoutMS=Integer
193225
- ``:wait_queue_timeout => Float``
226+
-
194227

195228
* - wtimeoutMS=Integer
196229
- ``{ :write => { :wtimeout => Float }}``
230+
-
197231

198232
* - zlibCompressionLevel=Integer
199233
- ``:zlib_compression_level => Integer``
234+
-
200235

201236

202237
Ruby Options

0 commit comments

Comments
 (0)