File tree 3 files changed +4
-0
lines changed
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3289,6 +3289,7 @@ class Database extends common.GrpcServiceObject {
3289
3289
session : session ! . formattedName_ ! ,
3290
3290
mutationGroups : mutationGroups . map ( mg => mg . proto ( ) ) ,
3291
3291
requestOptions : options ?. requestOptions ,
3292
+ excludeTxnFromChangeStream : options ?. excludeTxnFromChangeStreams ,
3292
3293
}
3293
3294
) ;
3294
3295
let dataReceived = false ;
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export interface TimestampBounds {
62
62
export interface BatchWriteOptions {
63
63
requestOptions ?: Pick < IRequestOptions , 'priority' | 'transactionTag' > ;
64
64
gaxOptions ?: CallOptions ;
65
+ excludeTxnFromChangeStreams ?: boolean ;
65
66
}
66
67
67
68
export interface RequestOptions {
Original file line number Diff line number Diff line change @@ -600,6 +600,7 @@ describe('Database', () => {
600
600
requestOptions : {
601
601
transactionTag : 'batch-write-tag' ,
602
602
} ,
603
+ excludeTxnFromChangeStream : true ,
603
604
gaxOptions : { autoPaginate : false } ,
604
605
} as BatchWriteOptions ;
605
606
@@ -644,6 +645,7 @@ describe('Database', () => {
644
645
session : fakeSession ! . formattedName_ ! ,
645
646
mutationGroups : mutationGroups . map ( mg => mg . proto ( ) ) ,
646
647
requestOptions : options ?. requestOptions ,
648
+ excludeTxnFromChangeStream : options ?. excludeTxnFromChangeStreams ,
647
649
}
648
650
) ;
649
651
You can’t perform that action at this time.
0 commit comments