Package pydo :: Module dbi
[show private | hide private]
[frames | no frames]

Module pydo.dbi

Classes
ConnectionPool a connection pool for a single connection alias.

Function Summary
  delAlias(alias)
delete a connection alias if it has already been initialized; does nothing otherwise
  getConnection(alias, create)
get a connection given a connection alias
  initAlias(alias, driver, connectArgs, pool, verbose, init)
initializes a connection alias with the stated connection arguments.

Function Details

delAlias(alias)

delete a connection alias if it has already been initialized; does nothing otherwise

getConnection(alias, create=True)

get a connection given a connection alias

initAlias(alias, driver, connectArgs, pool=None, verbose=False, init=None)

initializes a connection alias with the stated connection arguments.

It can cause confusion to let this be called repeatedly; you might think you are initializing it one way and not realize it is being initialized elsewhere differently. Therefore, this raises a ValueError if the alias is already initialized with different data. Multiple initializations with the same data (such as happens when a module calling initAlias is reloaded) are permitted.

If you need to change the connect values at runtime, call delAlias before initAlias.

Generated by Epydoc 2.0 on Wed Mar 8 10:18:59 2006 http://epydoc.sf.net