32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285,spanner/cloud-client/snippets_test.py,,unique_database_id,#,26

Before Change



def unique_database_id():
     Creates a unique id for the database. 
    return "test-db-{}".format("".join(random.choice(
        string.ascii_lowercase + string.digits) for _ in range(5)))


INSTANCE_ID = os.environ["SPANNER_INSTANCE"]
DATABASE_ID = unique_database_id()

After Change



def unique_database_id():
     Creates a unique id for the database. 
    return f"test-db-{uuid.uuid4().hex[:10]}"


INSTANCE_ID = os.environ["SPANNER_INSTANCE"]
DATABASE_ID = unique_database_id()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 13

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/snippets_test.py
Class Name:
Method Name: unique_database_id


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/backup_sample_test.py
Class Name:
Method Name: unique_instance_id


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/snippets_test.py
Class Name:
Method Name: unique_database_id


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/backup_sample_test.py
Class Name:
Method Name: unique_database_id


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/backup_sample_test.py
Class Name:
Method Name: unique_backup_id