MongoDBx-Class
view release on metacpan or search on metacpan
lib/MongoDBx/Class.pm view on Meta::CPAN
To start using MongoDBx::Class, please read L<MongoDBx::Class::Tutorial>.
It also contains a list of frequently asked questions.
=head1 ATTRIBUTES
=cut
has 'namespace' => (is => 'ro', isa => 'Str', required => 1);
has 'search_dirs' => (is => 'ro', isa => 'ArrayRef[Str]', default => sub { [] });
has 'doc_classes' => (is => 'ro', isa => 'HashRef', default => sub { {} });
=head2 namespace
A string representing the namespace of the MongoDB schema used (e.g.
C<MyApp::Schema>). Your document classes, structurally speaking, should be
descendants of this namespace (e.g. C<MyApp::Schema::Article>,
C<MyApp::Schema::Post>).
=head2 search_dirs
lib/MongoDBx/Class/Connection.pm view on Meta::CPAN
=head2 is_backup
This boolean attribute is used by L<MongoDBx::Class::ConnectionPool> objects
that use a backup connection.
=cut
has 'namespace' => (is => 'ro', isa => 'Str', required => 1);
has 'doc_classes' => (is => 'ro', isa => 'HashRef', required => 1);
has 'safe' => (is => 'rw', isa => 'Bool', default => 0);
has 'is_backup' => (is => 'ro', isa => 'Bool', default => 0);
=head1 OBJECT METHODS
Aside from the methods provided by L<MongoDB::Connection>, the following
methods and modifications are added:
( run in 0.567 second using v1.01-cache-2.11-cpan-5f2e87ce722 )