Exemplo n.º 1
0
def spanner_instance():
    spanner_client = spanner.Client()
    cleanup_old_instances(spanner_client)
    snippets.create_instance(INSTANCE_ID)
    instance = spanner_client.instance(INSTANCE_ID)
    yield instance
    instance.delete()
Exemplo n.º 2
0
def spanner_instance():
    snippets.create_instance(INSTANCE_ID)
    spanner_client = spanner.Client()
    instance = spanner_client.instance(INSTANCE_ID)
    yield instance
    instance.delete()