chore(spanner): add sample codes and sample ITs for Cloud Spanner Queues. - #14203
chore(spanner): add sample codes and sample ITs for Cloud Spanner Queues.#14203finnzzf wants to merge 8 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new QueueSample class and its corresponding integration test QueueSampleIT to demonstrate Spanner queue operations, including database creation, sending, receiving, acknowledging, and deleting messages using both Mutation and SQL APIs. The review feedback suggests improving exception handling in the sample code by propagating exceptions in createQueueDatabase instead of catching and swallowing them, which simplifies the code and ensures failures are properly propagated.
|
We don't have any sample tags here? |
|
Ok when we add tag we make sure that tags are common across all languages so that in future if we write a cloud doc and try to link sample they all can get linked I see in python we have sparate sets of tags then here https://github.com/finnzzf/google-cloud-python/blob/main/packages/google-cloud-spanner/samples/samples/queue_snippets.py, do we have agreement on how we will be showcasing this? |
Adding sample codes and tests for queues.