Class: Exwiw::ConnectionConfig
- Inherits:
-
Struct
- Object
- Struct
- Exwiw::ConnectionConfig
- Defined in:
- lib/exwiw.rb
Overview
uri is an optional full connection string (currently only honored by the
mongodb adapter, e.g. mongodb+srv://...). When present it is the source of
truth for the connection — host/port/user/password are ignored — so TLS,
replica_set, auth_source, etc. can be expressed via the URI's query string.
mongodb_query_timeout_ms is the global, server-enforced operation timeout
(CSOT timeout_ms) applied to every MongoDB query exwiw issues — the find
cursor's whole lifetime, the count, and an executing explain. It guards
against an accidentally heavy/unscoped query pinning the (often production)
source: the server aborts the operation past the deadline. nil leaves it
unset (no timeout). A per-collection query_timeout_ms overrides it.
mongodb adapter only.
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#database_name ⇒ Object
Returns the value of attribute database_name.
-
#host ⇒ Object
Returns the value of attribute host.
-
#mongodb_query_timeout_ms ⇒ Object
Returns the value of attribute mongodb_query_timeout_ms.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter
67 68 69 |
# File 'lib/exwiw.rb', line 67 def adapter @adapter end |
#database_name ⇒ Object
Returns the value of attribute database_name
67 68 69 |
# File 'lib/exwiw.rb', line 67 def database_name @database_name end |
#host ⇒ Object
Returns the value of attribute host
67 68 69 |
# File 'lib/exwiw.rb', line 67 def host @host end |
#mongodb_query_timeout_ms ⇒ Object
Returns the value of attribute mongodb_query_timeout_ms
67 68 69 |
# File 'lib/exwiw.rb', line 67 def mongodb_query_timeout_ms @mongodb_query_timeout_ms end |
#password ⇒ Object
Returns the value of attribute password
67 68 69 |
# File 'lib/exwiw.rb', line 67 def password @password end |
#port ⇒ Object
Returns the value of attribute port
67 68 69 |
# File 'lib/exwiw.rb', line 67 def port @port end |
#uri ⇒ Object
Returns the value of attribute uri
67 68 69 |
# File 'lib/exwiw.rb', line 67 def uri @uri end |
#user ⇒ Object
Returns the value of attribute user
67 68 69 |
# File 'lib/exwiw.rb', line 67 def user @user end |