def setup_db_env():
 global sa_logger, _IDLE_TIMEOUT, _MAX_RETRIES, _RETRY_INTERVAL, _CONNECTION
 _IDLE_TIMEOUT = CONF.sql_idle_timeout
 _MAX_RETRIES = CONF.sql_max_retries
 _RETRY_INTERVAL = CONF.sql_retry_interval
 _CONNECTION = CONF.sql_connection
 sa_logger = logging.getLogger('sqlalchemy.engine')
 if CONF.debug:
  sa_logger.setLevel(logging.DEBUG)

def setup_db_env ( ) : global sa_logger , _IDLE_TIMEOUT , _MAX_RETRIES , _RETRY_INTERVAL , _CONNECTION _IDLE_TIMEOUT = CONF . sql_idle_timeout _MAX_RETRIES = CONF . sql_max_retries _RETRY_INTERVAL = CONF . sql_retry_interval _CONNECTION = CONF . sql_connection sa_logger = logging . getLogger ( 'sqlalchemy.engine' ) if CONF . debug : sa_logger . setLevel ( logging . DEBUG )
setup configuration for database .