Skip to content

Commit d8af2d6

Browse files
Google APIscopybara-github
authored andcommitted
feat: Update TransactionOptions to include new option exclude_txn_from_change_streams
PiperOrigin-RevId: 607807587
1 parent 89ee00d commit d8af2d6

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

google/spanner/v1/transaction.proto

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -475,6 +475,22 @@ message TransactionOptions {
475475
// on the `session` resource.
476476
ReadOnly read_only = 2;
477477
}
478+
479+
// When `exclude_txn_from_change_streams` is set to `true`:
480+
// * Mutations from this transaction will not be recorded in change streams
481+
// with DDL option `allow_txn_exclusion=true` that are tracking columns
482+
// modified by these transactions.
483+
// * Mutations from this transaction will be recorded in change streams with
484+
// DDL option `allow_txn_exclusion=false or not set` that are tracking
485+
// columns modified by these transactions.
486+
//
487+
// When `exclude_txn_from_change_streams` is set to `false` or not set,
488+
// mutations from this transaction will be recorded in all change streams that
489+
// are tracking columns modified by these transactions.
490+
// `exclude_txn_from_change_streams` may only be specified for read-write or
491+
// partitioned-dml transactions, otherwise the API will return an
492+
// `INVALID_ARGUMENT` error.
493+
bool exclude_txn_from_change_streams = 5;
478494
}
479495

480496
// A transaction.

0 commit comments

Comments
 (0)