Exemplo n.º 1
0
def get_test_db_conn(dbname='gus'):
  '''return a test connection to the specified database
  '''
  log.info("connecting to test database")
  return sqlcontext.get_db_conn(CONNECTION_ARGS[dbname]['test'])
Exemplo n.º 2
0
def get_db_conn(dbname='gus'):
  '''return a production connection to the specified database
  '''
  log.info("connecting to production database")
  return sqlcontext.get_db_conn(CONNECTION_ARGS[dbname]['prod'])