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
Copy file name to clipboardExpand all lines: README.md
+30-12Lines changed: 30 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,13 @@ to implement the current requirements for the driver.
23
23
*[x] Simplify code: remove raw_find (raw_find called from cursors, raw_find called with "$cmd"), so raw_find is more calling a command than a find query.
24
24
*[x] Better support for new MongoDB version, for example the ability to use views
25
25
*[x] Upgrade to DBConnection 2.x
26
+
*[x] Removed depreacated op codes ([See](https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/#request-opcodes))
26
27
*[ ] Because the driver is used in production environments, quick adjustments are necessary.
27
28
28
29
## Features
29
30
30
31
* Supports MongoDB versions 3.2, 3.4, 3.6, 4.0
31
-
* Connection pooling (through db_connection 2.x)
32
+
* Connection pooling (through DBConnection 2.x)
32
33
* Streaming cursors
33
34
* Performant ObjectID generation
34
35
* Follows driver specification set by 10gen
@@ -64,8 +65,7 @@ to implement the current requirements for the driver.
64
65
65
66
### Installation:
66
67
67
-
Add mongodb_driver to your mix.exs `deps` and `:applications` (replace `>= 0.0.0` in `deps` if you want a specific version).
68
-
The driver supports pooling by db_connection (2.x). If you want to use pooling you should set up your project like this:
68
+
Add `mongodb_driver` to your mix.exs `deps` and `:applications`.
69
69
70
70
```elixir
71
71
defapplicationdo
@@ -79,11 +79,6 @@ end
79
79
80
80
Then run `mix deps.get` to fetch dependencies.
81
81
82
-
### Connection pooling
83
-
84
-
By default mongodb will start a single connection, but it also supports pooling with the `:pool_size` option.
85
-
For 3 connections add the `pool_size: 3` option to `Mongo.start_link` and to all function calls in `Mongo` using the pool.
The driver supports pooling by DBConnection (2.x). By default `mongodb_driver` will start a single
96
+
connection, but it also supports pooling with the `:pool_size` option. For 3 connections add the `pool_size: 3` option to `Mongo.start_link` and to all
This will allow for scenarios where the first `"hostname1.net:27017"` is unreachable for any reason and will automatically try to connect to each of the following entries in the list to connect to the cluster.
137
+
This will allow for scenarios where the first `"hostname1.net:27017"` is unreachable for any reason
138
+
and will automatically try to connect to each of the following entries in the list to connect to the cluster.
123
139
124
140
### Auth mechanisms
125
141
126
-
For versions of Mongo 3.0 and greater, the auth mechanism defaults to SCRAM. If you'd like to use [MONGODB-X509](https://docs.mongodb.com/manual/tutorial/configure-x509-client-authentication/#authenticate-with-a-x-509-certificate)
142
+
For versions of Mongo 3.0 and greater, the auth mechanism defaults to SCRAM.
143
+
If you'd like to use [MONGODB-X509](https://docs.mongodb.com/manual/tutorial/configure-x509-client-authentication/#authenticate-with-a-x-509-certificate)
127
144
authentication, you can specify that as a `start_link` option.
128
145
129
146
```elixir
@@ -132,7 +149,8 @@ authentication, you can specify that as a `start_link` option.
132
149
133
150
### AWS, TLS and Erlang SSL ciphers
134
151
135
-
Some MongoDB cloud providers (notably AWS) require a particular TLS cipher that isn't enabled by default in the Erlang SSL module. In order to connect to these services,
152
+
Some MongoDB cloud providers (notably AWS) require a particular TLS cipher that isn't enabled
153
+
by default in the Erlang SSL module. In order to connect to these services,
136
154
you'll want to add this cipher to your `ssl_opts`:
0 commit comments