Did I find the right examples for you? yes no

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)
Disconnect from MongoDB.

Disconnecting will close all underlying sockets in the connection
pool. If this instance is used again it will be automatically
re-opened. Care should be taken to make sure that :meth:`disconnect`
is not called in the middle of a sequence of operations in which
ordering is important. This could lead to unexpected results.

.. seealso:: :meth:`end_request`
.. versionadded:: 1.3

src/s/y/synapse-0.2/synapse/synapse_dumpdb.py   synapse(Download)
            handle_db (db_client, mode, name, cname, pname)
 
    db_client.disconnect ()
 
 

src/r/a/radical.utils-0.7.2/bin/dump_mongodb.py   radical.utils(Download)
            handle_db (db_client, mode, name, cname, pname)
 
    db_client.disconnect ()
 
 

src/n/o/NoSQLMap-HEAD/nosqlmap.py   NoSQLMap(Download)
			print "Successful default access on " + target
			success.append(target)
			conn.disconnect()
 
		except:

src/s/u/suricate-HEAD/bin/run_me.py   suricate(Download)
    else:
        USERS[user_id] = (USERS[user_id][0], True)
    client.disconnect()
 
 

src/s/y/synapse-0.2/synapse/mandelbrot/mandelbrot_worker.py   synapse(Download)
    collection.insert (result)
 
    db_client.disconnect ()
 
 

src/s/y/synapse-0.2/synapse/mandelbrot/mandelbrot_master.py   synapse(Download)
    print "done    (%s/%s)" % (len(done), len(workers))
 
    db_client.disconnect ()
 
 

src/p/a/paasmaker-HEAD/paasmaker/pacemaker/service/managedmongodb.py   paasmaker(Download)
		self.assertEquals(result["test"], 'bar', "Result object didn't have the 'bar' value that we set.")
 
		client.disconnect()
 
		# Shut down the instance, wait, and check that the port is free.

src/m/o/mongo-connector-1.2.1/mongo_connector/connector.py   mongo-connector(Download)
 
            # Establish a connection to the replica set as a whole
            main_conn.disconnect()
            main_conn = MongoClient(self.address,
                                    replicaSet=is_master['setName'])

src/m/o/mongo-connector-HEAD/mongo_connector/connector.py   mongo-connector(Download)
 
            # Establish a connection to the replica set as a whole
            main_conn.disconnect()
            main_conn = MongoClient(self.address,
                                    replicaSet=is_master['setName'])