Commit graph

545 commits

Author SHA1 Message Date
Baishampayan Ghose
75fd7f5c91 Add support for connecting to Replica Sets.
Monger can now connect to replica sets using one or more seeds when
calling monger.core/connect with a vector (or list) of server-addresses
instead of just a single one.

For example -

;; Connect to a single MongoDB instance
(connect (server-address "127.0.0.1" 27017) (mongo-options))

;; Connect to a replica set
(connect [(server-address "127.0.0.1" 27017)
          (server-address "127.0.0.1" 27018)]
         (mongo-options))

Since connect! just applies connect to all the args, it works fine there
as well.
2012-05-15 11:33:40 +05:30
Michael S. Klishin
0b4804c363 Merge branch 'ring-session-store' 2012-05-14 16:13:03 +04:00
Michael S. Klishin
6e6f04e292 Use explicitly specified collection name in tests 2012-05-14 16:11:33 +04:00
Michael S. Klishin
87184af396 Initial Ring session store implementation 2012-05-14 16:10:55 +04:00
Michael S. Klishin
0f1debd4f3 Support 0.3.1 2012-05-14 13:08:46 +04:00
Michael S. Klishin
a318f7cbc0 Back to SNAPSHOT 2012-05-14 10:20:30 +04:00
Michael S. Klishin
3d5835cdf3 1.0.0-beta6 2012-05-14 10:19:17 +04:00
Michael Klishin
008460e327 Merge pull request #23 from ghoseb/master
Remove redundant invocation of `to-db-object` on top of `as-field-selector`.
2012-05-12 01:52:35 -07:00
Baishampayan Ghose
43cddbcf57 Remove redundant invocation of to-db-object on top of as-field-selector.
`as-field-selector` already returns a DBObject, so there is no need to call `to-db-object` on top of the return value.
2012-05-12 11:00:33 +05:30
Michael S. Klishin
1d54e00a4d Change log update, copyright header update 2012-05-12 07:44:40 +04:00
Baishampayan Ghose
ccd3d7ab66 Add monger.collection/find-and-modify and associated tests. 2012-05-12 09:02:19 +05:30
Michael S. Klishin
2228a6dcbe How about you don't stop writing tests in the middle, Michael? 2012-05-03 19:55:06 +04:00
Michael S. Klishin
8142d02f01 Deprecate monger.js (moved to clojurewerkz.support.js) 2012-05-03 01:06:41 +04:00
Michael S. Klishin
451b29c718 Update change log 2012-05-02 00:19:16 +04:00
Michael S. Klishin
a47d53d5ca Use Validateur 1.1.0 2012-05-02 00:18:50 +04:00
Michael S. Klishin
d04ab3af2d More cleanup 2012-05-01 16:35:33 +04:00
Michael S. Klishin
971b2e230c More test suite cleanup 2012-05-01 16:29:58 +04:00
Michael S. Klishin
ef2af245e7 Link to clojurewerkz.org, correct a typo 2012-05-01 15:50:32 +04:00
Michael S. Klishin
7e5beb4cbb New beta cycle 2012-04-29 18:45:39 +04:00
Michael S. Klishin
a8b93be199 The recommended way of using Codox now is via Leiningen plugin 2012-04-29 18:38:28 +04:00
Michael S. Klishin
ea1e611ccf Back to snapshot 2012-04-29 18:24:11 +04:00
Michael S. Klishin
e6add85795 1.0.0-beta5 2012-04-29 18:23:28 +04:00
Michael S. Klishin
b1c6865dcd Link to upcoming documentation site [ci skip] 2012-04-28 21:31:33 +04:00
Michael S. Klishin
8d2c3d6081 Use clj-time 0.4.2 which does not spill reflection warnings like crazy 2012-04-26 21:15:29 +04:00
Michael S. Klishin
c36a0abe8c Use clojurewerkz.support 0.2.0 2012-04-26 21:14:48 +04:00
Michael S. Klishin
d92112e135 Remove unused imports 2012-04-26 20:41:37 +04:00
Michael S. Klishin
5341344e97 Remove type hints that are not guaranteed to be correct 100% of the time 2012-04-24 09:38:21 +04:00
Michael S. Klishin
1e342335b4 Update change log 2012-04-23 15:02:31 +04:00
Michael S. Klishin
444017fde2 Define several more operators 2012-04-23 15:01:13 +04:00
Michael S. Klishin
6a2698dce2 Support serialization of Clojure sets (or anything that implements java.util.Set) 2012-04-16 02:32:28 +04:00
Michael S. Klishin
5c62e47de7 Add an example that inserts a document with Clojure keywords as values 2012-04-16 01:14:26 +04:00
Michael S. Klishin
379fb73795 Guard one more test that relies on authentication/ordering 2012-04-16 00:44:08 +04:00
Michael S. Klishin
29d97f611d Try excluding the test that drops databases from CI 2012-04-16 00:41:43 +04:00
Michael S. Klishin
c970a60765 Remove some assertions that do not really test anything in the client 2012-04-16 00:38:26 +04:00
Michael S. Klishin
d6adb6c0e5 Test against 1 Clojure version on travis-ci.org until we figure out how to reseed credentials after DB is dropped 2012-04-16 00:36:13 +04:00
Michael S. Klishin
84a75d02bb Add Clojure releases Maven repo 2012-04-15 20:05:45 +04:00
Michael S. Klishin
7108cffa8b Clojure 1.4.0 2012-04-15 19:51:33 +04:00
Michael S. Klishin
ceeac55496 A more efficient implementation of clojure.core.cache/has? for BasicMongerCache 2012-04-12 17:12:08 +04:00
Michael S. Klishin
90c2864ddd Reflect capped collections support in the change log 2012-04-12 06:12:07 +04:00
Michael S. Klishin
2c9cce8466 Capped collections support 2012-04-12 06:10:08 +04:00
Michael S. Klishin
d203f27479 Cosmetics 2012-04-12 06:09:54 +04:00
Michael S. Klishin
f049fed33b Remove a fragile test
2.0.4 returns some BS error messages for it. I'd fix it if I could understand it. There are other tests for commands, so
screw it.
2012-04-12 04:17:29 +04:00
Michael S. Klishin
261583e604 Leiningen 2 style test naming 2012-04-12 00:40:37 +04:00
Michael S. Klishin
caafed81f8 Change log update 2012-04-11 21:06:21 +04:00
Michael S. Klishin
42e3640151 Merge branch 'core-cache-integration'
clojure.core.cache/CacheProtocol implementation on top of MongoDB
2012-04-11 21:01:30 +04:00
Michael S. Klishin
b3a592bb3b Updated bechmarks 2012-04-11 21:01:18 +04:00
Michael S. Klishin
90171ac2d1 Two faster paths for strings and dates 2012-04-11 20:59:20 +04:00
Michael S. Klishin
28831c61da Initial monger.cache version, implements clojure.core.cache/CacheProtocol only 2012-04-11 20:58:05 +04:00
Michael S. Klishin
e425bc84ea Support DBObject conversion for all objects that implement clojure.lang.Named, not just keywords 2012-04-11 20:57:31 +04:00
Michael S. Klishin
07d44ddc1f ws 2012-04-11 20:56:57 +04:00