-
Notifications
You must be signed in to change notification settings - Fork 135
samples: parameterises create backup version time #930
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
samples: parameterises create backup version time #930
Conversation
…o pitr-samples-parameterised-create-backup
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
…o pitr-samples-parameterised-create-backup
Codecov Report
@@ Coverage Diff @@
## pitr-samples #930 +/- ##
==================================================
+ Coverage 85.20% 85.22% +0.01%
- Complexity 2649 2650 +1
==================================================
Files 145 145
Lines 14358 14358
Branches 1391 1391
==================================================
+ Hits 12234 12236 +2
+ Misses 1540 1539 -1
+ Partials 584 583 -1
Continue to review full report at Codecov.
|
* feat: adds samples for pitr Adds sample for creating a database with a version retention period. Updates sample for creating a backup with a version time. Updates sample for restoring a backup, printing the backup version time. * fix: prints out version time for backup sample * test: adds test to the pitr create db sample * test: cleans up after pitr sample test finishes * test: fixes checkstyle violations * samples: updates backup samples for pitr Uses the earliest version time from the database as the version time for the backup. * test: fixes pitr samples test * test: fixes checkstyle violations * samples: PITR samples backup fix (#921) * samples: creates a backup using the current time Instead of using the earliest version time of the database, uses the current time (from spanner). If we used the earliest version time of the database instead we would be creating an empty backup, since the database we are backing up is not 1 hour old (default version retention period). * samples: remove unused variable Clean up create backup samples by removing unused variable. * samples: parameterises create backup version time (#930) * samples: fixes spanner samples tests
🤖 I have created a release *beep* *boop* --- ## [2.7.6](googleapis/java-spanner-jdbc@v2.7.5...v2.7.6) (2022-08-11) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([googleapis#921](googleapis/java-spanner-jdbc#921)) ([2aa0a40](googleapis/java-spanner-jdbc@2aa0a40)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Instead of hardcoding the version time in the create backup sample, parameterises it.