Did I find the right examples for you? yes no

All Samples(50)  |  Call(50)  |  Derive(0)  |  Import(0)
Drop a database.

Raises :class:`TypeError` if `name_or_database` is not an instance of
:class:`basestring` (:class:`str` in python 3) or Database.

:Parameters:
  - `name_or_database`: the name of a database to drop, or a
    :class:`~pymongo.database.Database` instance representing the
    database to drop

src/s/y/synapse-0.2/synapse/synapse_dumpdb.py   synapse(Download)
            if (not dbname) or (name == dbname) :
                try :
                    db_client.drop_database (name)
                    print "  removed database %s" % name
                except :

src/r/a/radical.utils-0.7.2/bin/dump_mongodb.py   radical.utils(Download)
            if (not dbname) or (name == dbname) :
                try :
                    db_client.drop_database (name)
                    print "  removed database %s" % name
                except :

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/common/djangoapps/terrain/browser.py   MHST2013-14(Download)
    '''
    mongo = MongoClient()
    mongo.drop_database(settings.CONTENTSTORE['OPTIONS']['db'])
    _CONTENTSTORE.clear()
    modulestore = xmodule.modulestore.django.modulestore()

src/p/y/pymongo-2.7/test/__init__.py   pymongo(Download)
        return
 
    c.drop_database("pymongo-pooling-tests")
    c.drop_database("pymongo_test")
    c.drop_database("pymongo_test1")
    c.drop_database("pymongo_test2")
    c.drop_database("pymongo_test_mike")

src/m/o/mongo-python-driver-HEAD/test/__init__.py   mongo-python-driver(Download)
        return
 
    c.drop_database("pymongo-pooling-tests")
    c.drop_database("pymongo_test")
    c.drop_database("pymongo_test1")
    c.drop_database("pymongo_test2")
    c.drop_database("pymongo_test_mike")

src/m/n/mnemosyne-HEAD/test/test_webapi/test_v1/urls_test.py   mnemosyne(Download)
    def tearDownClass(cls):
        connection = MongoClient('localhost', 27017)
        connection.drop_database(cls._dbname)
        if os.path.isdir(cls.tmpdir):
            shutil.rmtree(cls.tmpdir)

src/m/n/mnemosyne-HEAD/test/test_webapi/test_v1/hpfeeds_test.py   mnemosyne(Download)
    def tearDownClass(cls):
        connection = MongoClient('localhost', 27017)
        connection.drop_database(cls._dbname)
        if os.path.isdir(cls.tmpdir):
            shutil.rmtree(cls.tmpdir)

src/m/n/mnemosyne-HEAD/test/test_webapi/test_v1/files_test.py   mnemosyne(Download)
    def tearDownClass(cls):
        connection = MongoClient('localhost', 27017)
        connection.drop_database(cls._dbname)
        if os.path.isdir(cls.tmpdir):
            shutil.rmtree(cls.tmpdir)

src/m/n/mnemosyne-HEAD/test/test_webapi/test_v1/dorks_test.py   mnemosyne(Download)
    def tearDownClass(cls):
        connection = MongoClient('localhost', 27017)
        connection.drop_database(cls._dbname)
        if os.path.isdir(cls.tmpdir):
            shutil.rmtree(cls.tmpdir)

src/m/n/mnemosyne-HEAD/test/test_webapi/test_d/urls_test.py   mnemosyne(Download)
    def tearDownClass(cls):
        connection = MongoClient('localhost', 27017)
        connection.drop_database(cls._dbname)
        if os.path.isdir(cls.tmpdir):
            shutil.rmtree(cls.tmpdir)

  1 | 2 | 3 | 4  Next