Esempio n. 1
0
def cleanupPool():
    """
	Cleanup connection pool. Closing all inactive connections.
	
	@author: Nick Verbeck
	@since: 9/12/2008
	"""
    PySQLPool.PySQLPool().Cleanup()
Esempio n. 2
0
def terminatePool():
    """
	Terminate all Connection
	
	@author: Nick Verbeck
	@since: 5/12/2008
	"""
    PySQLPool.PySQLPool().Terminate()
Esempio n. 3
0
def commitPool():
    """
	Commits All changes in pool
	
	@author: Nick Verbeck
	@since: 9/12/2008
	"""
    PySQLPool.PySQLPool().Commit()
Esempio n. 4
0
def getNewPool():
    """
	Create a new PySQLPool
	
	@author: Nick Verbeck
	@since: 5/12/2008
	"""
    return PySQLPool.PySQLPool()