<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    MongoDBI - A proper ODM (Object-Document-Mapper) for MongoDB

VERSION
    version 0.0.6

SYNOPSIS
        package CDDB;

        use MongoDBI;
    
        app {
    
            # shared mongodb connection
            database =&gt; {
                name =&gt; 'mongodbi_cddb',
                host =&gt; 'mongodb://localhost:27017'
            },
    
            # load child doc classes
            classes =&gt; {
                self =&gt; 1, # loads CDDB::*
                load =&gt; ['Other::Namespace']
            }
    
        };
    
        1;
    
        package main ;
    
        use DateTime;
    
        my $cddb = CDDB-&gt;new;
    
        my $cds  = $cddb-&gt;class('album'); # grabs CDDB::Album
    
        # find cds released during or after the year 2000
        my $year_2000 = DateTime-&gt;now-&gt;set(year =&gt; 2000, month =&gt; 1, day =&gt; 1);

        my $search = $cds-&gt;search-&gt;where('released$gt' =&gt; $year_2000)-&gt;query;
    
        while (my $cd = $search-&gt;next) {
        
            print $cd-&gt;title, "\n";
        
        }

DESCRIPTION
    Why MongoDB? "MongoDB has the best features of document, key/value and
    relational databases."

    MongoDBI is an Object-Document-Mapper (ODM) for MongoDB. It allows you
    to create Moose-based classes to interact with MongoDB databases. Born
    out of the frustration of waiting for someone else to create a proper
    MongoDB modeling framework, I decided to bite-the-bullet and try my hand
    at it.

    At-a-glance, most will enjoy MongoDBI for its ability to easily model
    classes while leveraging the power of MongoDB's schemaless and
    expeditious document-based design, dynamic queries, and atomic modifier
    operations.

    Also noteworthy is MongoDBI's ease-of-use, chainable search facilities
    (filters), automated indexing, moose-integration (inheritance support,
    etc), lean document updates via dirty field tracking, and ability for
    each class to be configured to use a different database and connection,
    etc.

    Note! This library is still in its infancy and subject to change in code
    and in the overall design. The POD (documentation) may also be lacking
    in certain areas, for additional insight you may examine the
    accompanying tests.

    This class, MongoDBI, sub-classes MongoDBI::Application, please review
    that module for more usage information.

AUTHOR
    Al Newkirk &lt;awncorp@cpan.org&gt;

COPYRIGHT AND LICENSE
    This software is copyright (c) 2011 by awncorp.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

</pre></body></html>