Commit Graph

571 Commits

Author SHA1 Message Date
Mike Dirolf
7b4e51e825 deprecate DB#count and passing a selector to Collection#count 2009-08-18 11:48:16 -04:00
Mike Dirolf
103224b800 add Cursor#count method 2009-08-18 11:26:58 -04:00
Mike Dirolf
256e64c4a3 minor: test that already passes 2009-08-18 10:20:16 -04:00
Mike Dirolf
fc49e8c982 move tests -> test 2009-08-18 10:07:01 -04:00
Mike Dirolf
03beecd936 BUMP 0.12 [] to get collections, add _id to inserted hash instances, update some names (find_one, update replace find_first, repsert, modify), safe insert, safe update, better orderedhash initialize, working towards better exception hierarchy 2009-08-17 11:19:12 -04:00
Mike Dirolf
dc69516fbe bump extension version number in preparation for driver BUMP... oh github why do you make me do this 2009-08-17 11:16:59 -04:00
Mike Dirolf
047fc60c91 allow [] on DB, Collection instances to get collections/sub-collections 2009-08-17 11:11:03 -04:00
Mike Dirolf
8a6c9635d7 minor: only use gem1.9 if we used rake1.9 2009-08-17 10:14:48 -04:00
Mike Dirolf
e4bdec1a55 minor: whitespace 2009-08-14 17:27:19 -04:00
Mike Dirolf
723f823ea1 API CHANGE _id is aded to hash instances that get inserted / saved 2009-08-14 17:26:50 -04:00
Mike Dirolf
402b895385 find_one takes same options as find 2009-08-14 16:43:12 -04:00
Mike Dirolf
28a80f1b5e Deprecate Collection#find_first in favor of Collection#find_one, also improve docs 2009-08-14 15:39:49 -04:00
Mike Dirolf
6cb8c9f49b API CHANGE Add :safe option for Collection#insert and Collection#save
The API change is minor: Collection#insert({...}, {...}, {...}) no
longer works for inserting multiple documents - instead you must pass
an explicit Array: Collection#insert([{...}, {...}, {...}])
2009-08-14 14:25:29 -04:00
Mike Dirolf
7e0a1b9721 add OrderedHash[] initialization 2009-08-14 11:38:25 -04:00
Mike Dirolf
73233d6589 minor: update save to use Collection#update instead of the deprecated Collection#repsert 2009-08-14 09:54:52 -04:00
Mike Dirolf
23e09141a0 better error checking for database names 2009-08-13 16:26:51 -04:00
Mike Dirolf
431039a82a add InvalidName exception and use that where appropriate 2009-08-13 15:52:11 -04:00
Mike Dirolf
a41a88d0f2 deprecating DB#modify_in_db 2009-08-13 15:24:05 -04:00
Mike Dirolf
141974c012 minor: gitignore 2009-08-13 15:23:55 -04:00
Mike Dirolf
64380ad00c Deprecating Collection#modify, Collection#replace and Collection#repsert in favor of Collection#update 2009-08-13 15:18:53 -04:00
Mike Dirolf
ef1f698918 BUMP 0.11.1 snapshot support 2009-08-13 10:31:00 -04:00
Mike Dirolf
860505cd47 minor: bump extension version in preparation for bumping driver 2009-08-13 10:30:39 -04:00
Mike Dirolf
acc1076df7 test that already passes 2009-08-13 10:29:08 -04:00
Mike Dirolf
4963da9e89 add support for snapshot option to Collection#find 2009-08-11 11:42:34 -04:00
Mike Dirolf
c9658f1044 minor: try tricking github into building the extension 2009-08-10 16:17:13 -04:00
Mike Dirolf
09e549eac3 BUMP 0.11 fix C extension include paths, support 64-bit int, Collection#rename, better DB#collection_names, fix a threading deadlock 2009-08-10 16:13:17 -04:00
Mike Dirolf
1e4728a77f fix a deadlock with threaded queries 2009-08-10 16:10:52 -04:00
Mike Dirolf
691e65f684 API CHANGE: fixing DB#collection_names() - only return collection name, not full name. only return names of valid collections on this database 2009-08-06 15:52:07 -04:00
Mike Dirolf
fe7d7745c7 add collection name validation 2009-08-04 14:24:18 -04:00
Mike Dirolf
91d6ab4caa rename collection 2009-08-04 14:16:02 -04:00
Mike Dirolf
fb48299975 handle longs in c extension 2009-08-04 10:39:25 -04:00
Mike Dirolf
0a60ad0d7b support for long type in pure ruby [enc|dec]oder 2009-08-03 17:57:44 -04:00
Mike Dirolf
cb52b24040 hopefully sorted out this header nonsense 2009-08-03 12:06:51 -04:00
Mike Dirolf
3d6942c257 use ruby/ include paths - really wish this would be somehow standardized for different ruby installations 2009-08-03 11:18:13 -04:00
Mike Dirolf
3185578348 minor: gitignore 2009-08-03 11:13:10 -04:00
Mike Dirolf
2e4a7f153f raise a more clear exception for range error on Fixnums on 64-bit 2009-08-03 11:08:10 -04:00
Mike Dirolf
5dc64d8c1d minor: more tests that already pass 2009-07-28 15:00:54 -04:00
Mike Dirolf
4de3f61787 minor: test that already passes 2009-07-28 14:44:35 -04:00
Mike Dirolf
fa80e356fe BUMP 0.10.1 save should always return _id, not just for new inserts 2009-07-28 12:09:28 -04:00
Mike Dirolf
7da51cc317 save returns _id as well 2009-07-28 12:08:29 -04:00
Mike Dirolf
ddf7fdf6a2 bumping extension to 0.4.1 to try to convince github to build the gem 2009-07-28 11:45:34 -04:00
Mike Dirolf
975412426f minor: revert to old include path. will have to find a separate fix for windows 2009-07-28 11:25:11 -04:00
Mike Dirolf
ffa74ba3bb BUMP 0.10 API change - insert and save return _id. dates return as UTC. GridStore.list 2009-07-28 10:09:03 -04:00
Mike Dirolf
f00ad75aaf minor: credits 2009-07-28 09:56:45 -04:00
Paul Dlug
6b9b922266 Generate _id on the client side if no _id is provided to insert/save. The generated ObjectID (or array of ObjectID's in the case of a multiple insert) is return. Closes RUBY-22 and RUBY-23.
Signed-off-by: Mike Dirolf <mike@dirolf.com>
2009-07-28 21:53:59 +08:00
Mike Dirolf
5a6a8d29a5 minor: update include paths 2009-07-20 15:22:08 -04:00
Mike Dirolf
b934c997f9 minor: tool to check if extension is installed 2009-07-17 13:29:38 -04:00
Mike Dirolf
706d06aee0 towards a working windows build for the C extension 2009-07-17 12:16:33 -04:00
Mike Dirolf
0d8ba577ba minor: oops - bad copy forgot semicolon 2009-07-16 16:36:07 -04:00
Mike Dirolf
6cd976398e minor: c ext return dates as UTC, update credits, tweak last commit 2009-07-16 16:32:57 -04:00