Commit Graph

63 Commits

Author SHA1 Message Date
Jim Menard b82dd30579 Accept more types for hints args. 2009-01-14 10:28:32 -05:00
Jim Menard 50070c2efa Support for hints. 2009-01-13 15:51:41 -05:00
Jim Menard 61a0244c4c Pass Collection object, not name, to query so that we can access its hint fields at query time. 2009-01-13 15:38:46 -05:00
Jim Menard 1afd968f5d Added Cursor#explain. Made query sends lazy. 2009-01-13 14:02:16 -05:00
Jim Menard 97fa97bd2c Pass parent, name, and database to DBRef constructor when deserializing BSON 2009-01-09 15:22:10 -05:00
Jim Menard fd6b0a2848 Raise an error if Cursor#to_a is called after Cursor#each but not also before. 2009-01-07 14:22:53 -05:00
Jim Menard 169a96ad5b Added Cursor#to_a and more tests and docs. 2009-01-07 14:07:17 -05:00
Jim Menard 26b88efd3b Bug fixes:
- Make sure Query#fields returns a hash, not an array.
- Fix query limit by passing limit number to cursor and having it enforce the
  limit. (Database returns limit as first batch, but will continue to return
  data after the limit if requested.)
Improvements:
- Query#new can take a single field name instead of an array
- A few doc comment improvements here and there.
2009-01-07 09:46:30 -05:00
Jim Menard f709bc6290 Updated copyright dates. 2009-01-06 10:51:01 -05:00
Jim Menard 95e75995f6 Doc tweaks 2008-12-17 11:49:06 -05:00
Jim Menard aee3ae2c9d More documentation 2008-12-17 11:43:08 -05:00
Jim Menard f961339cf5 Raise an error if cursor returns $err. 2008-12-09 14:47:34 -05:00
Jim Menard 5e3815bf69 first commit 2008-11-21 20:00:51 -05:00