This commit is contained in:
Jim Menard 2009-02-01 10:25:50 -05:00
parent f94ad318b6
commit b1ef64c81f
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ they be XGen::Mongo::Driver::ObjectID instances.)
The database itself inserts an _id value if none is specified when a record is
inserted.
The driver automatically sends the _id field to the database first, which is
how Mongo likes it. You don't have to worry about where the _id field is in
your hash record, or worry if you are using an OrderedHash or not.
=== Primary Key Factories
A primary key factory is a class you supply to a DB object that knows how to