Commit graph

866 commits

Author SHA1 Message Date
Michael S. Klishin
886a270bf9 Introduce monger.collection/find-seq
For cases when you do not want to work with DBCursors but also
do not need conversion to maps that monger.collection/find-maps does.
2011-10-08 12:08:26 +04:00
Michael S. Klishin
db6721ddab Brush up conversion tests 2011-10-08 04:46:49 +04:00
Michael S. Klishin
4999891e59 Alias monger.collection that we use very heavily in monger.test.collection 2011-10-08 04:44:13 +04:00
Michael S. Klishin
59da9db80d Improve this test 2011-10-08 04:42:10 +04:00
Michael S. Klishin
69d7abb747 Ditto 2011-10-08 04:39:18 +04:00
Michael S. Klishin
74dcd77092 Use "new style" type hints 2011-10-08 03:48:46 +04:00
Michael S. Klishin
d05b5bec8c Demonstrate iteration over DBCursors with iterator-seq 2011-10-08 03:01:04 +04:00
Michael S. Klishin
625db17646 A few basic batch insert stress tests 2011-10-08 02:29:16 +04:00
Michael S. Klishin
cd26973e89 Clojure 1.3.0 is out 2011-09-24 13:29:27 +04:00
Michael S. Klishin
c875883534 declare vars that are initially unbound 2011-09-19 12:34:10 +04:00
Michael S. Klishin
c5850bd59f Get rid of monger.util/with-ns
It was an awful hack, now replaced by a less awful one.
2011-09-19 12:31:29 +04:00
Michael S. Klishin
189d2366ab Hm, yeah 2011-09-19 12:29:22 +04:00
Michael S. Klishin
2673c5bc0f Add monger.core/with-connection and monger.core/with-db 2011-09-19 12:18:07 +04:00
Michael S. Klishin
5e12f9aec2 Introduce monger.core/connect! and monger.core/set-db!
Even though it is not idiomatic Clojure to mutate vars like this,
it is very common for many applications to only use one MongoDB
connection (so, no per-thread var rebinding) and one main database.

For those cases, these function eliminate the need for mundaine
hacks with namespace switching.
2011-09-19 12:14:48 +04:00
Michael S. Klishin
a6d96da5bd Another attemp to make CI pass 2011-09-14 14:50:55 +04:00
Michael S. Klishin
416cb5b315 Lets see if this is what causes CI to fail 2011-09-14 14:47:42 +04:00
Michael S. Klishin
27358efbbc Use Clojure 1.3.0-RC0 2011-09-14 14:32:17 +04:00
Michael S. Klishin
a8b14d5c54 Bump version 2011-09-14 14:26:35 +04:00
Michael S. Klishin
3e6a6fac44 Simplify finders that use document id 2011-09-14 14:11:56 +04:00
Michael S. Klishin
5145f45afa Make sure our test suite uses both ObjectId instances as well as string ids 2011-09-14 14:04:34 +04:00
Michael S. Klishin
3e8e5d7b32 Don't assume id is a string (most of the time it is not) 2011-09-14 14:01:20 +04:00
Michael S. Klishin
7227bd6436 Add one more test that demonstrates monger.collection/update behavior with the $set operator 2011-09-12 14:49:28 +04:00
Michael S. Klishin
ec84824334 Correct documentation examples 2011-09-12 10:37:24 +04:00
Michael S. Klishin
73ce6b7909 Remove clojure.tools.cli 0.1.0 dependency, it conflicts with the Clojure version we want 2011-09-11 23:22:21 +04:00
Michael S. Klishin
57d8e62058 monger.util/get-id now can also handle Clojure maps, using both :_id and "_id" as id keys 2011-09-11 23:16:36 +04:00
Michael S. Klishin
09a19c67eb Bump development version 2011-09-11 23:02:46 +04:00
Michael S. Klishin
6d12e34465 monger.convertion => monger.conversion 2011-09-11 23:02:46 +04:00
Oleksandr Petrov
30ed15e67f Adding docs for major collection methods. 2011-09-11 16:13:29 +02:00
Oleksandr Petrov
5a94424402 Adding monger.utils/get-id protocol extension for DBObject. 2011-09-11 16:13:14 +02:00
Oleksandr Petrov
25a24a5231 Adding basic operations documentation 2011-09-11 14:40:46 +02:00
Oleksandr Petrov
2f82ac2bb6 Adding purge-collection function, refactoring purge-*-collection methods. 2011-09-11 12:48:42 +02:00
Michael S. Klishin
c1d45cf543 Of course we will be using travis-ci.org 2011-09-11 14:40:15 +04:00
Michael S. Klishin
8f2e7a2411 Update README in preparation to moving to a public repo 2011-09-11 14:28:38 +04:00
Michael S. Klishin
af45ad74fb Update license information
I am considering doing first public release soon and for now, it is better
to keep it unaffiliated with any particular company
2011-09-11 11:32:46 +04:00
Michael S. Klishin
1ea892328f Use "new style" type hints 2011-09-11 11:11:02 +04:00
Michael S. Klishin
a63fc0fadd Add license header 2011-09-11 11:10:42 +04:00
Michael S. Klishin
63d8e0848f Blow the dust off monger.core 2011-09-10 20:41:23 +04:00
Michael S. Klishin
4db676657e Minor README update 2011-09-10 20:28:13 +04:00
Michael S. Klishin
285f4c66ea Bump version to 0.5.0-SNAPSHOT 2011-09-10 08:48:26 +04:00
Michael S. Klishin
fadf939cd5 Implement monger.collection/rename 2011-09-10 08:46:17 +04:00
Michael S. Klishin
e681bf1a1c Implement monger.core/command 2011-09-10 08:46:10 +04:00
Michael S. Klishin
1f091ab735 Implement monger.collection/create 2011-09-10 08:19:19 +04:00
Michael S. Klishin
24b2dbe516 Implement monger.collection/exists? and monger.collection/drop 2011-09-10 08:09:32 +04:00
Michael S. Klishin
1f9b611003 update-multi is not really worth having, monger.collection/date with the :multi option is good enough 2011-09-10 07:46:41 +04:00
Michael S. Klishin
b90834fdc5 Implement index operations 2011-09-10 07:45:47 +04:00
Michael S. Klishin
2ab84f2593 Reformat 2011-09-09 06:59:34 +04:00
Michael S. Klishin
60e93b4275 Eliminate a reflection warning 2011-09-09 06:58:57 +04:00
Michael S. Klishin
1a9e0715cd Don't refer to clojure.core functions monger.collection and monger.core replace 2011-09-09 06:57:01 +04:00
Michael S. Klishin
668373c894 tools.cli should be a development dependency, it is not needed at runtime 2011-09-09 00:37:53 +04:00
Oleksandr Petrov
b91214cf37 Starting adding samples. 2011-09-08 22:27:49 +02:00