Skip to content

Commit 039f10b

Browse files
committed
update URI option documentation
1 parent 61066ca commit 039f10b

File tree

1 file changed

+43
-7
lines changed

1 file changed

+43
-7
lines changed

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

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

9393
.. list-table::
9494
:header-rows: 1
95-
:widths: 40 105
95+
:widths: 40 200 250
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
115+
pairs, e.g.
116+
``"SERVICE_REALM:foo,CANONICALIZE_HOSTNAME:TRUE"``
108117

109118
* - authSource=String
110119
- ``:auth_source => String``
120+
-
111121

112122
* - compressors=Strings
113123
- ``:compressors => Array<String>``
124+
- Specified as a comma-separated list, e.g. "zlib,snappy"
114125

115126
* - connect=String
116127
- ``:connect => Symbol``
128+
-
117129

118130
* - ssl=Boolean
119131
- ``:ssl => true|false``
132+
-
120133

121134
* - connectTimeoutMS=Integer
122135
- ``:connect_timeout => Float``
136+
-
123137

124138
* - fsync=Boolean
125139
- ``{ :write => { :fsync => true|false }}``
140+
-
126141

127142
* - heartbeatFrequencyMS=Integer
128143
- ``:heartbeat_frequency => Float``
144+
-
129145

130146
* - journal=Boolean
131147
- ``{ :write => { :j => true|false }}``
148+
-
132149

133150
* - localThresholdMS=Integer
134151
- ``:local_threshold => Float``
152+
-
135153

136154
* - maxIdleTimeMS=Integer
137155
- ``:max_idle_time => Float``
156+
-
138157

139158
* - maxPoolSize=Integer
140159
- ``:max_pool_size => Integer``
160+
-
141161

142162
* - minPoolSize=Integer
143163
- ``:min_pool_size => Integer``
164+
-
144165

145166
* - readPreference=String
146167
- ``{ :read => { :mode => Symbol }}``
168+
-
147169

148170
* - 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' }]``.
150176

151177
* - replicaSet=String
152178
- ``:replica_set => String``
179+
-
153180

154181
* - serverSelectionTimeoutMS=Integer
155182
- ``:server_selection_timeout => Float``
183+
-
156184

157185
* - socketTimeoutMS=Integer
158186
- ``:socket_timeout => Float``
187+
-
159188

160189
* - tls=Boolean
161190
- ``:ssl => boolean``
191+
-
162192

163193
* - tlsAllowInvalidCertificates=Boolean
164194
- ``:ssl_verify => boolean``
165-
166-
NOTE: Because ``tlsAllowInvalidCertificates`` uses ``true`` to sigify that verification
195+
- Because ``tlsAllowInvalidCertificates`` uses ``true`` to signify that verification
167196
should be disabled and ``ssl_verify`` uses ``false`` to signify that verification should be
168197
disabled, the boolean is inverted before being used to set ``ssl_verify``
169198

170199
* - tlsCAFile=String
171200
- ``:ssl_ca_cert => String``
201+
-
172202

173203
* - tlsClientCertFile=String
174204
- ``:ssl_cert => String``
205+
-
175206

176207
* - tlsClientKeyFile=String
177208
- ``:ssl_key => String``
209+
-
178210

179211
* - tlsClientKeyPassword=String
180212
- ``:ssl_key_pass_phrase => String``
213+
-
181214

182215
* - tlsInsecure=Boolean
183216
- ``: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
186218
``ssl_verify`` uses ``false`` to signify that verification should be disabled, the boolean
187219
is inverted before being used to set ``ssl_verify``
188220

189221
* - w=Integer|String
190222
- ``{ :write => { :w => Integer|String }}``
223+
-
191224

192225
* - waitQueueTimeoutMS=Integer
193226
- ``:wait_queue_timeout => Float``
227+
-
194228

195229
* - wtimeoutMS=Integer
196230
- ``{ :write => { :wtimeout => Float }}``
231+
-
197232

198233
* - zlibCompressionLevel=Integer
199234
- ``:zlib_compression_level => Integer``
235+
-
200236

201237

202238
Ruby Options

0 commit comments

Comments
 (0)