---
name: "MongoDBx::Class::Database"
section: "3pm"
platform: "linux"
package: "libmongodbx-class-perl"
version: "1.030002-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/MongoDBx::Class::Database"
---

# MongoDBx::Class::Database(3pm)

A MongoDBx::Class database object

## NAME

MongoDBx::Class::Database - A MongoDBx::Class database object

## VERSION

version 1.030002

## EXTENDS

MongoDB::Database

## SYNOPSIS

```
        # get a database object from your connection object
        my $db = $conn->get_database($db_name); # or simply $conn->$db_name
```

## DESCRIPTION

MongoDBx::Class::Database extends MongoDB::Database. All it actually does is override the `"get_collection"` method such that it returns a MongoDBx::Class::Collection object instead of a MongoDB::Collection object.

## ATTRIBUTES

No special attributes are added.

## OBJECT METHODS

Only the `"get_collection"` method is modified as described above.

## AUTHOR

Ido Perlmuter, `"<ido at ido50.net>"`

## BUGS

Please report any bugs or feature requests to `"bug-mongodbx-class at rt.cpan.org"`, or through the web interface at \<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MongoDBx-Class\>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

## SUPPORT

You can find documentation for this module with the perldoc command.

```
        perldoc MongoDBx::Class::Database
```

You can also look for information at:

- •

  RT: CPAN's request tracker

  \<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MongoDBx::Class\>

- •

  AnnoCPAN: Annotated CPAN documentation

  \<http://annocpan.org/dist/MongoDBx::Class\>

- •

  CPAN Ratings

  \<http://cpanratings.perl.org/d/MongoDBx::Class\>

- •

  Search CPAN

  \<http://search.cpan.org/dist/MongoDBx::Class/\>

## SEE ALSO

MongoDBx::Class::Connection, MongoDB::Database.

## LICENSE AND COPYRIGHT

Copyright 2010-2014 Ido Perlmuter.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.
