config changes

This commit is contained in:
ryan 2016-12-15 15:06:07 +01:00 committed by Rodolphe Marques
parent 33480bead2
commit 243c739d2b
2 changed files with 22 additions and 2 deletions

View File

@ -6,8 +6,8 @@ from bigchaindb.common.exceptions import ConfigurationError
BACKENDS = { BACKENDS = {
'rethinkdb': 'bigchaindb.backend.rethinkdb.connection.RethinkDBConnection',
'mongodb': 'bigchaindb.backend.mongodb.connection.MongoDBConnection', 'mongodb': 'bigchaindb.backend.mongodb.connection.MongoDBConnection',
'rethinkdb': 'bigchaindb.backend.rethinkdb.connection.RethinkDBConnection'
} }
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@ -1,2 +1,22 @@
"""MongoDB backend implementation.
Contains a MongoDB-specific implementation of the
:mod:`~bigchaindb.backend.changefeed`, :mod:`~bigchaindb.backend.query`, and
:mod:`~bigchaindb.backend.schema` interfaces.
You can specify BigchainDB to use MongoDB as its database backend by either
setting ``database.backend`` to ``'rethinkdb'`` in your configuration file, or
setting the ``BIGCHAINDB_DATABASE_BACKEND`` environment variable to
``'rethinkdb'``.
If configured to use MongoDB, BigchainDB will automatically return instances
of :class:`~bigchaindb.backend.rethinkdb.MongoDBConnection` for
:func:`~bigchaindb.backend.connection.connect` and dispatch calls of the
generic backend interfaces to the implementations in this module.
"""
# Register the single dispatched modules on import. # Register the single dispatched modules on import.
from bigchaindb.backend.mongodb import schema, query # noqa from bigchaindb.backend.mongodb import changefeed, schema, query # noqa
# MongoDBConnection should always be accessed via
# ``bigchaindb.backend.connect()``.