googleapis / nodejs-spanner

Node.js client for Google Cloud Spanner: the world’s first fully managed relational database service to offer both strong consistency and horizontal scalability.
https://cloud.google.com/spanner/
Apache License 2.0
135 stars 99 forks source link

feat: add support for change streams transaction exclusion option for Batch Write #2070

Closed alkatrivedi closed 2 months ago

alkatrivedi commented 2 months ago

This PR add support for excluding transactions from being recorded in the change streams by passing a new boolean option ExcludeTxnFromChangeStreams in the Batch Write API.

surbhigarg92 commented 2 months ago

Add a test in spanner.ts using mock spanner . Similar to https://github.com/googleapis/nodejs-spanner/blob/main/test/spanner.ts#L3137