Beispiel #1
0
def configure(pivot='mem_backend'):
    IMPL.set_pivot(pivot)

    if pivot == 'db_backend':
        global SQL_CONNECTION
        global SQL_IDLE_TIMEOUT
        config.register_db_opts()
        SQL_CONNECTION = cfg.CONF.sql_connection
        SQL_IDLE_TIMEOUT = cfg.CONF.sql_idle_timeout
Beispiel #2
0
def configure(pivot='mem_backend'):
    IMPL.set_pivot(pivot)

    if pivot == 'db_backend':
        global SQL_CONNECTION
        global SQL_IDLE_TIMEOUT
        config.register_db_opts()
        SQL_CONNECTION = cfg.CONF.sql_connection
        SQL_IDLE_TIMEOUT = cfg.CONF.sql_idle_timeout
Beispiel #3
0
def configure():
    global SQL_CONNECTION
    global SQL_IDLE_TIMEOUT
    config.register_db_opts()
    SQL_CONNECTION = cfg.CONF.sql_connection
    SQL_IDLE_TIMEOUT = cfg.CONF.sql_idle_timeout