moped v1.2.0 Release Notes
-
🆕 New Features
mongoid/mongoid#2251 Allow
continue_on_error
option to be provided to inserts.mongoid/mongoid#2210 Added
Session#disconnect
which will disconnect all nodes in the cluster from their respective database servers. Useful for cases where a large number of database connections are being created on separate threads and need to be explicitly closed after their work is completed.#33 Added
Session#databases
andSession#database_names
as a convenience for getting all database information for the server.session = Moped::Session.new([ "localhost:27017" ]) session.database_names #=> [ "moped_test" ] session.databases #=> { "databases" => [{ "name" => "moped_test" }]}