コード例 #1
0
ファイル: __init__.py プロジェクト: tchen0123/pysqlpool
def cleanupPool():
    """
	Cleanup connection pool. Closing all inactive connections.
	
	@author: Nick Verbeck
	@since: 9/12/2008
	"""
    PySQLPool.PySQLPool().Cleanup()
コード例 #2
0
ファイル: __init__.py プロジェクト: tchen0123/pysqlpool
def terminatePool():
    """
	Terminate all Connection
	
	@author: Nick Verbeck
	@since: 5/12/2008
	"""
    PySQLPool.PySQLPool().Terminate()
コード例 #3
0
ファイル: __init__.py プロジェクト: tchen0123/pysqlpool
def commitPool():
    """
	Commits All changes in pool
	
	@author: Nick Verbeck
	@since: 9/12/2008
	"""
    PySQLPool.PySQLPool().Commit()
コード例 #4
0
ファイル: __init__.py プロジェクト: tchen0123/pysqlpool
def getNewPool():
    """
	Create a new PySQLPool
	
	@author: Nick Verbeck
	@since: 5/12/2008
	"""
    return PySQLPool.PySQLPool()