parameters: (type_=None, uri=None, _db=None, pool=True, shared=False)
return_statement: return Database(uri, pool=pool, shared=shared)
docstring: Configure and return a :class:`~ichnaea.db.Database` instance.
  
      :param type_: one of "ro" or "rw"
      :param uri: the uri to connect to; if not provided, uses ``type_``
          parameter
      :param _db: Test-only hook to provide a pre-configured db.
      :param pool: True for connection pool, False for no connection pool
      :param shared: True for a thread-local sessions, False for independent
          sessions
docstring_summary: Configure and return a :class:`~ichnaea.db.Database` instance.
docstring_tokens: Configure and return a : class : ~ichnaea . db . Database instance .
function: def configure_db(type_=None, uri=None, _db=None, pool=True, shared=False):
      """
      Configure and return a :class:`~ichnaea.db.Database` instance.
  
      :param type_: one of "ro" or "rw"
      :param uri: the uri to connect to; if not provided, uses ``type_``
          parameter
      :param _db: Test-only hook to provide a pre-configured db.
      :param pool: True for connection pool, False for no connection pool
      :param shared: True for a thread-local sessions, False for independent
          sessions
      """
      if _db is not None:
          return _db
      if uri is None:
          uri = DB_TYPE[type_]
      return Database(uri, pool=pool, shared=shared)
function_tokens: def configure_db ( type_ = None , uri = None , _db = None , pool = True , shared = False ) : if _db is not None : return _db if uri is None : uri = DB_TYPE [ type_ ] return Database ( uri , pool = pool , shared = shared )