You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v1/spanner_client.ts
+30
Original file line number
Diff line number
Diff line change
@@ -895,6 +895,16 @@ export class SpannerClient {
895
895
*
896
896
* If the field is set to `true` but the request does not set
897
897
* `partition_token`, the API returns an `INVALID_ARGUMENT` error.
898
+
* @param {boolean} [request.lastStatement]
899
+
* Optional. If set to true, this statement marks the end of the transaction.
900
+
* The transaction should be committed or aborted after this statement
901
+
* executes, and attempts to execute any other requests against this
902
+
* transaction (including reads and queries) will be rejected.
903
+
*
904
+
* For DML statements, setting this option may cause some error reporting to
905
+
* be deferred until commit time (e.g. validation of unique constraints).
906
+
* Given this, successful execution of a DML statement should not be assumed
907
+
* until a subsequent Commit call completes successfully.
898
908
* @param {object} [options]
899
909
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
900
910
* @returns {Promise} - The promise which resolves to an array.
@@ -1010,6 +1020,16 @@ export class SpannerClient {
1010
1020
* handled requests will yield the same response as the first execution.
* Optional. If set to true, this request marks the end of the transaction.
1025
+
* The transaction should be committed or aborted after these statements
1026
+
* execute, and attempts to execute any other requests against this
1027
+
* transaction (including reads and queries) will be rejected.
1028
+
*
1029
+
* Setting this option may cause some error reporting to be deferred until
1030
+
* commit time (e.g. validation of unique constraints). Given this, successful
1031
+
* execution of statements should not be assumed until a subsequent Commit
1032
+
* call completes successfully.
1013
1033
* @param {object} [options]
1014
1034
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1015
1035
* @returns {Promise} - The promise which resolves to an array.
@@ -1906,6 +1926,16 @@ export class SpannerClient {
1906
1926
*
1907
1927
* If the field is set to `true` but the request does not set
1908
1928
* `partition_token`, the API returns an `INVALID_ARGUMENT` error.
1929
+
* @param {boolean} [request.lastStatement]
1930
+
* Optional. If set to true, this statement marks the end of the transaction.
1931
+
* The transaction should be committed or aborted after this statement
1932
+
* executes, and attempts to execute any other requests against this
1933
+
* transaction (including reads and queries) will be rejected.
1934
+
*
1935
+
* For DML statements, setting this option may cause some error reporting to
1936
+
* be deferred until commit time (e.g. validation of unique constraints).
1937
+
* Given this, successful execution of a DML statement should not be assumed
1938
+
* until a subsequent Commit call completes successfully.
1909
1939
* @param {object} [options]
1910
1940
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
0 commit comments