Mongoose::Engine::Base - heavy lifting done here
version 0.20
The Mongoose standard engine. Does all the dirty work. Very monolithic. Replace it with your engine if you want.
Just like "find_one" in MongoDB::Collection, but blesses the hash document into your class package.
Also has a handy mode which allows retrieving an _id directly from an string:
_id
my $author = Author->find_one( '4dd77f4ebf4342d711000000' );
Which expands onto:
my $author = Author->find_one({ _id=>MongoDB::OID->new( value=>'4dd77f4ebf4342d711000000' ) });
Just like "find" in MongoDB::Collection, but returns a Mongoose::Cursor of documents blessed into your package.
Just like "query" in MongoDB::Collection, but returns a Mongoose::Cursor of documents blessed into your package.
Deletes the document in the database.
Turns an object into a hash document.
Turns a hash document back into an object.
Returns the MongoDB::Collection object for this class or object.
Commits the object to the database.
Returns the object's corresponding MongoDB::Database instance.
Checks all Mongoose::Join fields for invalid references to foreign object ids.
To install Mongoose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mongoose
CPAN shell
perl -MCPAN -e shell install Mongoose
For more information on module installation, please visit the detailed CPAN module installation guide.