@@ -792,6 +792,17 @@ message ExecuteSqlRequest {
792792 // If the field is set to `true` but the request does not set
793793 // `partition_token`, the API returns an `INVALID_ARGUMENT` error.
794794 bool data_boost_enabled = 16 ;
795+
796+ // Optional. If set to true, this statement marks the end of the transaction.
797+ // The transaction should be committed or aborted after this statement
798+ // executes, and attempts to execute any other requests against this
799+ // transaction (including reads and queries) will be rejected.
800+ //
801+ // For DML statements, setting this option may cause some error reporting to
802+ // be deferred until commit time (e.g. validation of unique constraints).
803+ // Given this, successful execution of a DML statement should not be assumed
804+ // until a subsequent Commit call completes successfully.
805+ bool last_statement = 17 [(google.api.field_behavior ) = OPTIONAL ];
795806}
796807
797808// The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].
@@ -861,6 +872,17 @@ message ExecuteBatchDmlRequest {
861872
862873 // Common options for this request.
863874 RequestOptions request_options = 5 ;
875+
876+ // Optional. If set to true, this request marks the end of the transaction.
877+ // The transaction should be committed or aborted after these statements
878+ // execute, and attempts to execute any other requests against this
879+ // transaction (including reads and queries) will be rejected.
880+ //
881+ // Setting this option may cause some error reporting to be deferred until
882+ // commit time (e.g. validation of unique constraints). Given this, successful
883+ // execution of statements should not be assumed until a subsequent Commit
884+ // call completes successfully.
885+ bool last_statements = 6 [(google.api.field_behavior ) = OPTIONAL ];
864886}
865887
866888// The response for
0 commit comments