Tyler Brock
6301a41254
minor: whitespace
2012-02-27 16:42:48 -05:00
Tyler Brock
8e64c74d7d
RUBY-239 warn if bad options are passed to connection constructors
2012-02-27 14:06:07 -05:00
Tyler Brock
79105f6c98
minor: documentation and test updates for RUBY-378
2012-02-16 14:31:34 -05:00
Kyle Banker
b79d408a11
Enable log duration by default for :debug-level logging.
2012-02-16 14:01:09 -05:00
Tyler Brock
b31d51ba7a
minor: updates to uri parser for MS granularity
2012-01-26 16:52:25 -05:00
Tyler Brock
9a39987737
depricated wtimeout in favor of wtimeoutMS
2012-01-17 19:35:46 -05:00
Tyler Brock
1124918502
added journal, connectTimeoutMS and socketTimeoutMS to URI options
2012-01-17 18:45:09 -05:00
Kyle Banker
ee499482ca
minor: test fix
2011-12-05 16:26:14 -05:00
Kyle Banker
2e48229a3b
Merge pull request #64 from songbird/songbird-collection-logging
...
Allow logging from Collection using Connection logger.
2011-11-28 10:19:10 -08:00
Kyle Banker
fa10508f07
Remove thread-local map and socket map (complexity creep).
2011-11-18 15:47:06 -05:00
Kyle Banker
6345820eae
RUBY-345 update logging startup message
2011-11-15 15:59:42 -05:00
Kyle Banker
fbadbe9977
RUBY-351 test fix
2011-11-15 15:58:51 -05:00
Kyle Banker
6f57665631
minor: test fix
2011-11-07 18:01:27 -05:00
Kyle Banker
83ac53202e
minor: fix failing tests
2011-11-04 15:12:58 -04:00
Kyle Banker
7a11bb18a9
Ensure that cursor requiring getmore ops will not
...
be affected by replica set refresh.
Prep for sending commands to secondaries.
2011-10-17 14:41:09 -04:00
slloyd
92a2e86d9a
Allow logging from Collection using Connection logger
2011-10-11 10:25:24 -07:00
Kyle Banker
018da9049c
minor: test fix
2011-09-26 17:48:17 -04:00
Kyle Banker
69598857ef
minor: tests
2011-09-26 16:27:10 -04:00
Kyle Banker
3e3f05813a
minor: cleanup and test fix
2011-09-15 17:46:59 -04:00
Kyle Banker
e678bac75e
RUBY-306 clean up logging.
2011-09-07 17:14:53 -04:00
Kyle Banker
50c38c6c6b
RUBY-284 document :read API
2011-09-06 14:58:03 -04:00
Kyle Banker
b0b1c043ca
Pool manager unit test.
2011-09-02 17:26:43 -04:00
Kyle Banker
45c40e7267
RUBY-320 RUBY-284 initial cascading read API. Mapping sockets to pools.
2011-08-29 17:49:58 -04:00
Kyle Banker
f00c0dfcf0
RUBY-316 initial SSL support
2011-08-26 17:35:40 -04:00
Kyle Banker
8db62d2cbf
RUBY-311 ensure that ReplSetConnection connects to replica set members only.
2011-08-26 12:40:13 -04:00
Kyle Banker
3c127984a3
RUBY-242 check BSON size on a per-connection basis.
2011-08-25 14:57:24 -04:00
Kyle Banker
9b42265d10
Fixed unit test
2011-08-25 12:56:06 -04:00
Karl Seguin
2557a575eb
added node class
2011-08-12 16:40:09 -04:00
Kyle Banker
a323911507
minor: fixed some failing tests
2011-08-08 16:05:56 -04:00
Karl Seguin
7783cebfdf
batch_size is taken into account when limit is 0/not set
2011-06-16 22:21:40 +08:00
Wojciech Piekutowski
5dfac28dd4
Fix Mongo::Cursor#query_options_hash
2011-02-20 16:22:39 +01:00
Wojciech Piekutowski
2644d2b27d
Mock and initialize logger
2011-02-20 16:04:01 +01:00
Wojciech Piekutowski
27046e2b3a
Unify test_helper.rb loading code
2011-02-20 16:03:05 +01:00
Wojciech Piekutowski
6cdae6dc7e
Move helper methods away from tests setup to avoid redefinition on each test run
2011-02-20 16:00:06 +01:00
Kyle Banker
5017646209
minor: test fix and cleanup
2011-01-31 15:53:38 -05:00
Steve Sloan
8a7296599b
Refactored logging of DB operations to use Connection#instrument.
...
This allows for easy overriding, e.g. to ActiveSupport notifications.
2011-01-31 15:13:12 -05:00
Kyle Banker
7c4740c47c
RUBY-232 handle authentication with connection pooling
2011-01-31 14:47:38 -05:00
Kyle Banker
af0ecde925
RUBY-204 Collection construct now has analogous API
...
to DB constructor (i.e., name comes first)
2011-01-05 09:44:46 -05:00
Kyle Banker
ae202d590e
RUBY-192; Updates for Collection#ensure_index
2011-01-03 16:16:24 -05:00
Kyle Banker
4e5b1a7d23
RUBY-205 RUBY-150 Support new connection URI options
2010-12-30 15:40:50 -05:00
Kyle Banker
27b410f869
ReplSetConnection updates
2010-12-13 14:07:32 -05:00
Kyle Banker
08b7cddc81
Initial ReplSetConnection checking. Refactoring.
2010-12-10 16:00:35 -05:00
Kyle Banker
8aaed130d6
Cleanup for distributed reads on replica sets.
2010-11-24 13:49:34 -05:00
Kyle Banker
1e57ca90e1
Initial commit for reads from rs secondaries
2010-11-16 15:43:59 -05:00
Matthew Rathbone
d33ddfb8e0
added ensure_index
2010-11-11 16:21:23 -05:00
Kyle Banker
a2f501924e
Specify pk factory on Collection.new as a :pk option
2010-11-03 18:36:29 -04:00
Kyle Banker
68af3dbe8f
Allow the setting of safe mode globally on the Connection,
...
DB, and Collection levels. The safe mode setting will
automatically be inherited down the hierarchy Connection ->
DB -> Collection -> (insert, update, remove). This default
can be overridden at any time. Connection#safe, DB#safe, and
Collection#safe will yield the current default value.
2010-11-03 17:36:08 -04:00
Kyle Banker
afe8fe3167
RUBY-193 don't create gridfs indexes when slave_ok
2010-10-21 13:01:32 -04:00
Hongli Lai (Phusion)
05772177f7
Fix DB#error and DB#last_status deprecation warnings in unit tests.
2010-09-13 10:48:08 -04:00
Kyle Banker
7309d7e48b
Path fixes for test in Ruby 1.9.2
2010-09-09 15:58:51 -04:00