Skip to content

Add snippet for Repeatable Read configuration at client and transaction #3908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tlhquynh
Copy link
Contributor

@tlhquynh tlhquynh commented Jun 6, 2025

The snippet shows how Repeatable Read can be configured at client and transaction level.
User can try the new snippet by: (1) createdatabase (2) write (3) isolationlevelsettings.

@tlhquynh tlhquynh requested review from a team as code owners June 6, 2025 18:14
Copy link

snippet-bot bot commented Jun 6, 2025

Here is the summary of changes.

You are about to add 2 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Jun 6, 2025
@tlhquynh tlhquynh changed the title Add snippet for Repeatable Read configuration at client and transaction level Jun 6, 2025
@@ -1569,6 +1571,47 @@ static void queryWithQueryOptions(DatabaseClient dbClient) {
}
// [END spanner_query_with_query_options]

// [START spanner_isolation_level_settings]
static void isolationLevelSetting(DatabaseId db) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please skip these. these are archived samples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner API. size: m Pull request size is medium.
2 participants