Beispiel #1
0
def get_connection(cluster, dsn):
    _, connection = get_managed_databases(cluster, (dsn,)).items()[0]
    return connection
Beispiel #2
0
def target_connection(target_cluster):
    dsn = create_temporary_database('target')
    _, connection = get_managed_databases(target_cluster, (dsn,)).items()[0]
    yield connection