@google-cloud/spanner 7.0.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +1 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +80 -4
- package/build/protos/google/spanner/v1/spanner.proto +318 -142
- package/build/protos/google/spanner/v1/type.proto +6 -1
- package/build/protos/protos.d.ts +1722 -82
- package/build/protos/protos.js +7233 -2692
- package/build/protos/protos.json +520 -7
- package/build/src/common-grpc/service.js +2 -2
- package/build/src/index.d.ts +5 -0
- package/build/src/index.js +5 -0
- package/build/src/session-pool.js +2 -0
- package/build/src/transaction.d.ts +12 -0
- package/build/src/transaction.js +24 -1
- package/build/src/v1/database_admin_client.d.ts +184 -221
- package/build/src/v1/database_admin_client.js +77 -94
- package/build/src/v1/instance_admin_client.d.ts +118 -143
- package/build/src/v1/instance_admin_client.js +41 -52
- package/build/src/v1/spanner_client.d.ts +245 -180
- package/build/src/v1/spanner_client.js +118 -59
- package/build/src/v1/spanner_client_config.json +5 -0
- package/package.json +9 -9
|
@@ -64,8 +64,7 @@ class SpannerClient {
|
|
|
64
64
|
* API remote host.
|
|
65
65
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
66
66
|
* Follows the structure of {@link gapicConfig}.
|
|
67
|
-
* @param {boolean
|
|
68
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
67
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
69
68
|
* For more information, please check the
|
|
70
69
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
71
70
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -73,7 +72,7 @@ class SpannerClient {
|
|
|
73
72
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
74
73
|
* ```
|
|
75
74
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
76
|
-
* const client = new SpannerClient({fallback:
|
|
75
|
+
* const client = new SpannerClient({fallback: true}, gax);
|
|
77
76
|
* ```
|
|
78
77
|
*/
|
|
79
78
|
constructor(opts, gaxInstance) {
|
|
@@ -130,7 +129,7 @@ class SpannerClient {
|
|
|
130
129
|
if (!opts.fallback) {
|
|
131
130
|
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
|
|
132
131
|
}
|
|
133
|
-
else
|
|
132
|
+
else {
|
|
134
133
|
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
|
|
135
134
|
}
|
|
136
135
|
if (opts.libName && opts.libVersion) {
|
|
@@ -154,8 +153,9 @@ class SpannerClient {
|
|
|
154
153
|
// Some of the methods on this service provide streaming responses.
|
|
155
154
|
// Provide descriptors for these.
|
|
156
155
|
this.descriptors.stream = {
|
|
157
|
-
executeStreamingSql: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, opts.fallback
|
|
158
|
-
streamingRead: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, opts.fallback
|
|
156
|
+
executeStreamingSql: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback),
|
|
157
|
+
streamingRead: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback),
|
|
158
|
+
batchWrite: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback),
|
|
159
159
|
};
|
|
160
160
|
// Put together the default options sent with requests.
|
|
161
161
|
this._defaults = this._gaxGrpc.constructSettings('google.spanner.v1.Spanner', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -206,6 +206,7 @@ class SpannerClient {
|
|
|
206
206
|
'rollback',
|
|
207
207
|
'partitionQuery',
|
|
208
208
|
'partitionRead',
|
|
209
|
+
'batchWrite',
|
|
209
210
|
];
|
|
210
211
|
for (const methodName of spannerStubMethods) {
|
|
211
212
|
const callPromise = this.spannerStub.then(stub => (...args) => {
|
|
@@ -529,11 +530,11 @@ class SpannerClient {
|
|
|
529
530
|
return this.innerApiCalls.partitionRead(request, options, callback);
|
|
530
531
|
}
|
|
531
532
|
/**
|
|
532
|
-
* Like {@link google.spanner.v1.Spanner.ExecuteSql|ExecuteSql}, except returns the
|
|
533
|
-
* set as a stream. Unlike
|
|
534
|
-
* is no limit on
|
|
535
|
-
*
|
|
536
|
-
* column value can exceed 10 MiB.
|
|
533
|
+
* Like {@link protos.google.spanner.v1.Spanner.ExecuteSql|ExecuteSql}, except returns the
|
|
534
|
+
* result set as a stream. Unlike
|
|
535
|
+
* {@link protos.google.spanner.v1.Spanner.ExecuteSql|ExecuteSql}, there is no limit on
|
|
536
|
+
* the size of the returned result set. However, no individual row in the
|
|
537
|
+
* result set can exceed 100 MiB, and no column value can exceed 10 MiB.
|
|
537
538
|
*
|
|
538
539
|
* @param {Object} request
|
|
539
540
|
* The request object that will be sent.
|
|
@@ -569,23 +570,27 @@ class SpannerClient {
|
|
|
569
570
|
* @param {number[]} request.paramTypes
|
|
570
571
|
* It is not always possible for Cloud Spanner to infer the right SQL type
|
|
571
572
|
* from a JSON value. For example, values of type `BYTES` and values
|
|
572
|
-
* of type `STRING` both appear in
|
|
573
|
+
* of type `STRING` both appear in
|
|
574
|
+
* {@link protos.google.spanner.v1.ExecuteSqlRequest.params|params} as JSON strings.
|
|
573
575
|
*
|
|
574
576
|
* In these cases, `param_types` can be used to specify the exact
|
|
575
577
|
* SQL type for some or all of the SQL statement parameters. See the
|
|
576
|
-
* definition of {@link google.spanner.v1.Type|Type} for more information
|
|
578
|
+
* definition of {@link protos.google.spanner.v1.Type|Type} for more information
|
|
577
579
|
* about SQL types.
|
|
578
580
|
* @param {Buffer} request.resumeToken
|
|
579
581
|
* If this request is resuming a previously interrupted SQL statement
|
|
580
582
|
* execution, `resume_token` should be copied from the last
|
|
581
|
-
* {@link google.spanner.v1.PartialResultSet|PartialResultSet} yielded before the
|
|
582
|
-
* enables the new SQL statement execution to resume
|
|
583
|
-
* off. The rest of the request parameters must
|
|
584
|
-
* request that yielded this token.
|
|
583
|
+
* {@link protos.google.spanner.v1.PartialResultSet|PartialResultSet} yielded before the
|
|
584
|
+
* interruption. Doing this enables the new SQL statement execution to resume
|
|
585
|
+
* where the last one left off. The rest of the request parameters must
|
|
586
|
+
* exactly match the request that yielded this token.
|
|
585
587
|
* @param {google.spanner.v1.ExecuteSqlRequest.QueryMode} request.queryMode
|
|
586
588
|
* Used to control the amount of debugging information returned in
|
|
587
|
-
* {@link google.spanner.v1.ResultSetStats|ResultSetStats}. If
|
|
588
|
-
*
|
|
589
|
+
* {@link protos.google.spanner.v1.ResultSetStats|ResultSetStats}. If
|
|
590
|
+
* {@link protos.google.spanner.v1.ExecuteSqlRequest.partition_token|partition_token} is
|
|
591
|
+
* set, {@link protos.google.spanner.v1.ExecuteSqlRequest.query_mode|query_mode} can only
|
|
592
|
+
* be set to
|
|
593
|
+
* {@link protos.google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL|QueryMode.NORMAL}.
|
|
589
594
|
* @param {Buffer} request.partitionToken
|
|
590
595
|
* If present, results will be restricted to the specified partition
|
|
591
596
|
* previously created using PartitionQuery(). There must be an exact
|
|
@@ -606,18 +611,19 @@ class SpannerClient {
|
|
|
606
611
|
* Query optimizer configuration to use for the given query.
|
|
607
612
|
* @param {google.spanner.v1.RequestOptions} request.requestOptions
|
|
608
613
|
* Common options for this request.
|
|
614
|
+
* @param {google.spanner.v1.DirectedReadOptions} request.directedReadOptions
|
|
615
|
+
* Directed read options for this request.
|
|
609
616
|
* @param {boolean} request.dataBoostEnabled
|
|
610
617
|
* If this is for a partitioned query and this field is set to `true`, the
|
|
611
|
-
* request
|
|
618
|
+
* request is executed with Spanner Data Boost independent compute resources.
|
|
612
619
|
*
|
|
613
620
|
* If the field is set to `true` but the request does not set
|
|
614
|
-
* `partition_token`, the API
|
|
621
|
+
* `partition_token`, the API returns an `INVALID_ARGUMENT` error.
|
|
615
622
|
* @param {object} [options]
|
|
616
623
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
617
624
|
* @returns {Stream}
|
|
618
|
-
* An object stream which emits {@link google.spanner.v1.PartialResultSet
|
|
619
|
-
* Please see the
|
|
620
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming)
|
|
625
|
+
* An object stream which emits {@link protos.google.spanner.v1.PartialResultSet|PartialResultSet} on 'data' event.
|
|
626
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming | documentation }
|
|
621
627
|
* for more details and examples.
|
|
622
628
|
*/
|
|
623
629
|
executeStreamingSql(request, options) {
|
|
@@ -634,9 +640,9 @@ class SpannerClient {
|
|
|
634
640
|
return this.innerApiCalls.executeStreamingSql(request, options);
|
|
635
641
|
}
|
|
636
642
|
/**
|
|
637
|
-
* Like {@link google.spanner.v1.Spanner.Read|Read}, except returns the result set
|
|
638
|
-
* stream. Unlike {@link google.spanner.v1.Spanner.Read|Read}, there is no
|
|
639
|
-
* size of the returned result set. However, no individual row in
|
|
643
|
+
* Like {@link protos.google.spanner.v1.Spanner.Read|Read}, except returns the result set
|
|
644
|
+
* as a stream. Unlike {@link protos.google.spanner.v1.Spanner.Read|Read}, there is no
|
|
645
|
+
* limit on the size of the returned result set. However, no individual row in
|
|
640
646
|
* the result set can exceed 100 MiB, and no column value can exceed
|
|
641
647
|
* 10 MiB.
|
|
642
648
|
*
|
|
@@ -650,22 +656,29 @@ class SpannerClient {
|
|
|
650
656
|
* @param {string} request.table
|
|
651
657
|
* Required. The name of the table in the database to be read.
|
|
652
658
|
* @param {string} request.index
|
|
653
|
-
* If non-empty, the name of an index on
|
|
654
|
-
*
|
|
655
|
-
*
|
|
659
|
+
* If non-empty, the name of an index on
|
|
660
|
+
* {@link protos.google.spanner.v1.ReadRequest.table|table}. This index is used instead of
|
|
661
|
+
* the table primary key when interpreting
|
|
662
|
+
* {@link protos.google.spanner.v1.ReadRequest.key_set|key_set} and sorting result rows.
|
|
663
|
+
* See {@link protos.google.spanner.v1.ReadRequest.key_set|key_set} for further
|
|
664
|
+
* information.
|
|
656
665
|
* @param {string[]} request.columns
|
|
657
|
-
* Required. The columns of {@link google.spanner.v1.ReadRequest.table|table} to be
|
|
658
|
-
* this request.
|
|
666
|
+
* Required. The columns of {@link protos.google.spanner.v1.ReadRequest.table|table} to be
|
|
667
|
+
* returned for each row matching this request.
|
|
659
668
|
* @param {google.spanner.v1.KeySet} request.keySet
|
|
660
669
|
* Required. `key_set` identifies the rows to be yielded. `key_set` names the
|
|
661
|
-
* primary keys of the rows in {@link google.spanner.v1.ReadRequest.table|table} to
|
|
662
|
-
*
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
*
|
|
667
|
-
*
|
|
668
|
-
* empty, rows
|
|
670
|
+
* primary keys of the rows in {@link protos.google.spanner.v1.ReadRequest.table|table} to
|
|
671
|
+
* be yielded, unless {@link protos.google.spanner.v1.ReadRequest.index|index} is present.
|
|
672
|
+
* If {@link protos.google.spanner.v1.ReadRequest.index|index} is present, then
|
|
673
|
+
* {@link protos.google.spanner.v1.ReadRequest.key_set|key_set} instead names index keys
|
|
674
|
+
* in {@link protos.google.spanner.v1.ReadRequest.index|index}.
|
|
675
|
+
*
|
|
676
|
+
* If the {@link protos.google.spanner.v1.ReadRequest.partition_token|partition_token}
|
|
677
|
+
* field is empty, rows are yielded in table primary key order (if
|
|
678
|
+
* {@link protos.google.spanner.v1.ReadRequest.index|index} is empty) or index key order
|
|
679
|
+
* (if {@link protos.google.spanner.v1.ReadRequest.index|index} is non-empty). If the
|
|
680
|
+
* {@link protos.google.spanner.v1.ReadRequest.partition_token|partition_token} field is
|
|
681
|
+
* not empty, rows will be yielded in an unspecified order.
|
|
669
682
|
*
|
|
670
683
|
* It is not an error for the `key_set` to name rows that do not
|
|
671
684
|
* exist in the database. Read yields nothing for nonexistent rows.
|
|
@@ -676,9 +689,9 @@ class SpannerClient {
|
|
|
676
689
|
* @param {Buffer} request.resumeToken
|
|
677
690
|
* If this request is resuming a previously interrupted read,
|
|
678
691
|
* `resume_token` should be copied from the last
|
|
679
|
-
* {@link google.spanner.v1.PartialResultSet|PartialResultSet} yielded before the
|
|
680
|
-
* enables the new read to resume where the last read
|
|
681
|
-
* rest of the request parameters must exactly match the request
|
|
692
|
+
* {@link protos.google.spanner.v1.PartialResultSet|PartialResultSet} yielded before the
|
|
693
|
+
* interruption. Doing this enables the new read to resume where the last read
|
|
694
|
+
* left off. The rest of the request parameters must exactly match the request
|
|
682
695
|
* that yielded this token.
|
|
683
696
|
* @param {Buffer} request.partitionToken
|
|
684
697
|
* If present, results will be restricted to the specified partition
|
|
@@ -687,18 +700,19 @@ class SpannerClient {
|
|
|
687
700
|
* PartitionReadRequest message used to create this partition_token.
|
|
688
701
|
* @param {google.spanner.v1.RequestOptions} request.requestOptions
|
|
689
702
|
* Common options for this request.
|
|
703
|
+
* @param {google.spanner.v1.DirectedReadOptions} request.directedReadOptions
|
|
704
|
+
* Directed read options for this request.
|
|
690
705
|
* @param {boolean} request.dataBoostEnabled
|
|
691
706
|
* If this is for a partitioned read and this field is set to `true`, the
|
|
692
|
-
* request
|
|
707
|
+
* request is executed with Spanner Data Boost independent compute resources.
|
|
693
708
|
*
|
|
694
709
|
* If the field is set to `true` but the request does not set
|
|
695
|
-
* `partition_token`, the API
|
|
710
|
+
* `partition_token`, the API returns an `INVALID_ARGUMENT` error.
|
|
696
711
|
* @param {object} [options]
|
|
697
712
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
698
713
|
* @returns {Stream}
|
|
699
|
-
* An object stream which emits {@link google.spanner.v1.PartialResultSet
|
|
700
|
-
* Please see the
|
|
701
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming)
|
|
714
|
+
* An object stream which emits {@link protos.google.spanner.v1.PartialResultSet|PartialResultSet} on 'data' event.
|
|
715
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming | documentation }
|
|
702
716
|
* for more details and examples.
|
|
703
717
|
*/
|
|
704
718
|
streamingRead(request, options) {
|
|
@@ -714,6 +728,51 @@ class SpannerClient {
|
|
|
714
728
|
this.initialize();
|
|
715
729
|
return this.innerApiCalls.streamingRead(request, options);
|
|
716
730
|
}
|
|
731
|
+
/**
|
|
732
|
+
* Batches the supplied mutation groups in a collection of efficient
|
|
733
|
+
* transactions. All mutations in a group are committed atomically. However,
|
|
734
|
+
* mutations across groups can be committed non-atomically in an unspecified
|
|
735
|
+
* order and thus, they must be independent of each other. Partial failure is
|
|
736
|
+
* possible, i.e., some groups may have been committed successfully, while
|
|
737
|
+
* some may have failed. The results of individual batches are streamed into
|
|
738
|
+
* the response as the batches are applied.
|
|
739
|
+
*
|
|
740
|
+
* BatchWrite requests are not replay protected, meaning that each mutation
|
|
741
|
+
* group may be applied more than once. Replays of non-idempotent mutations
|
|
742
|
+
* may have undesirable effects. For example, replays of an insert mutation
|
|
743
|
+
* may produce an already exists error or if you use generated or commit
|
|
744
|
+
* timestamp-based keys, it may result in additional rows being added to the
|
|
745
|
+
* mutation's table. We recommend structuring your mutation groups to be
|
|
746
|
+
* idempotent to avoid this issue.
|
|
747
|
+
*
|
|
748
|
+
* @param {Object} request
|
|
749
|
+
* The request object that will be sent.
|
|
750
|
+
* @param {string} request.session
|
|
751
|
+
* Required. The session in which the batch request is to be run.
|
|
752
|
+
* @param {google.spanner.v1.RequestOptions} request.requestOptions
|
|
753
|
+
* Common options for this request.
|
|
754
|
+
* @param {number[]} request.mutationGroups
|
|
755
|
+
* Required. The groups of mutations to be applied.
|
|
756
|
+
* @param {object} [options]
|
|
757
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
758
|
+
* @returns {Stream}
|
|
759
|
+
* An object stream which emits {@link protos.google.spanner.v1.BatchWriteResponse|BatchWriteResponse} on 'data' event.
|
|
760
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming | documentation }
|
|
761
|
+
* for more details and examples.
|
|
762
|
+
*/
|
|
763
|
+
batchWrite(request, options) {
|
|
764
|
+
var _a;
|
|
765
|
+
request = request || {};
|
|
766
|
+
options = options || {};
|
|
767
|
+
options.otherArgs = options.otherArgs || {};
|
|
768
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
769
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
770
|
+
this._gaxModule.routingHeader.fromParams({
|
|
771
|
+
session: (_a = request.session) !== null && _a !== void 0 ? _a : '',
|
|
772
|
+
});
|
|
773
|
+
this.initialize();
|
|
774
|
+
return this.innerApiCalls.batchWrite(request, options);
|
|
775
|
+
}
|
|
717
776
|
listSessions(request, optionsOrCallback, callback) {
|
|
718
777
|
var _a;
|
|
719
778
|
request = request || {};
|
|
@@ -746,8 +805,9 @@ class SpannerClient {
|
|
|
746
805
|
* to the server's maximum allowed page size.
|
|
747
806
|
* @param {string} request.pageToken
|
|
748
807
|
* If non-empty, `page_token` should contain a
|
|
749
|
-
* {@link google.spanner.v1.ListSessionsResponse.next_page_token|next_page_token}
|
|
750
|
-
*
|
|
808
|
+
* {@link protos.google.spanner.v1.ListSessionsResponse.next_page_token|next_page_token}
|
|
809
|
+
* from a previous
|
|
810
|
+
* {@link protos.google.spanner.v1.ListSessionsResponse|ListSessionsResponse}.
|
|
751
811
|
* @param {string} request.filter
|
|
752
812
|
* An expression for filtering the results of the request. Filter rules are
|
|
753
813
|
* case insensitive. The fields eligible for filtering are:
|
|
@@ -762,13 +822,12 @@ class SpannerClient {
|
|
|
762
822
|
* @param {object} [options]
|
|
763
823
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
764
824
|
* @returns {Stream}
|
|
765
|
-
* An object stream which emits an object representing {@link google.spanner.v1.Session
|
|
825
|
+
* An object stream which emits an object representing {@link protos.google.spanner.v1.Session|Session} on 'data' event.
|
|
766
826
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
767
827
|
* times as needed. Note that it can affect your quota.
|
|
768
828
|
* We recommend using `listSessionsAsync()`
|
|
769
829
|
* method described below for async iteration which you can stop as needed.
|
|
770
|
-
* Please see the
|
|
771
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
830
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
772
831
|
* for more details and examples.
|
|
773
832
|
*/
|
|
774
833
|
listSessionsStream(request, options) {
|
|
@@ -799,8 +858,9 @@ class SpannerClient {
|
|
|
799
858
|
* to the server's maximum allowed page size.
|
|
800
859
|
* @param {string} request.pageToken
|
|
801
860
|
* If non-empty, `page_token` should contain a
|
|
802
|
-
* {@link google.spanner.v1.ListSessionsResponse.next_page_token|next_page_token}
|
|
803
|
-
*
|
|
861
|
+
* {@link protos.google.spanner.v1.ListSessionsResponse.next_page_token|next_page_token}
|
|
862
|
+
* from a previous
|
|
863
|
+
* {@link protos.google.spanner.v1.ListSessionsResponse|ListSessionsResponse}.
|
|
804
864
|
* @param {string} request.filter
|
|
805
865
|
* An expression for filtering the results of the request. Filter rules are
|
|
806
866
|
* case insensitive. The fields eligible for filtering are:
|
|
@@ -815,12 +875,11 @@ class SpannerClient {
|
|
|
815
875
|
* @param {object} [options]
|
|
816
876
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
817
877
|
* @returns {Object}
|
|
818
|
-
* An iterable Object that allows
|
|
878
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
819
879
|
* When you iterate the returned iterable, each element will be an object representing
|
|
820
|
-
* {@link google.spanner.v1.Session
|
|
880
|
+
* {@link protos.google.spanner.v1.Session|Session}. The API will be called under the hood as needed, once per the page,
|
|
821
881
|
* so you can stop the iteration when you don't need more results.
|
|
822
|
-
* Please see the
|
|
823
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
882
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
824
883
|
* for more details and examples.
|
|
825
884
|
*/
|
|
826
885
|
listSessionsAsync(request, options) {
|
|
@@ -106,6 +106,11 @@
|
|
|
106
106
|
"timeout_millis": 30000,
|
|
107
107
|
"retry_codes_name": "unavailable",
|
|
108
108
|
"retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
|
|
109
|
+
},
|
|
110
|
+
"BatchWrite": {
|
|
111
|
+
"timeout_millis": 3600000,
|
|
112
|
+
"retry_codes_name": "non_idempotent",
|
|
113
|
+
"retry_params_name": "default"
|
|
109
114
|
}
|
|
110
115
|
}
|
|
111
116
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/spanner",
|
|
3
3
|
"description": "Cloud Spanner Client Library for Node.js",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.2.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Google Inc.",
|
|
7
7
|
"engines": {
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@google-cloud/common": "^5.0.0",
|
|
55
|
-
"@google-cloud/precise-date": "^
|
|
55
|
+
"@google-cloud/precise-date": "^4.0.0",
|
|
56
56
|
"@google-cloud/projectify": "^4.0.0",
|
|
57
57
|
"@google-cloud/promisify": "^4.0.0",
|
|
58
58
|
"@grpc/proto-loader": "^0.7.0",
|
|
59
59
|
"@types/big.js": "^6.0.0",
|
|
60
|
-
"@types/stack-trace": "0.0.
|
|
60
|
+
"@types/stack-trace": "0.0.33",
|
|
61
61
|
"arrify": "^2.0.0",
|
|
62
62
|
"big.js": "^6.0.0",
|
|
63
63
|
"checkpoint-stream": "^0.1.1",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"events-intercept": "^2.0.0",
|
|
66
66
|
"extend": "^3.0.2",
|
|
67
67
|
"google-auth-library": "^9.0.0",
|
|
68
|
-
"google-gax": "
|
|
68
|
+
"google-gax": "4.0.5",
|
|
69
69
|
"grpc-gcp": "^1.0.0",
|
|
70
70
|
"is": "^3.2.1",
|
|
71
71
|
"lodash.snakecase": "^4.1.1",
|
|
72
72
|
"merge-stream": "^2.0.0",
|
|
73
73
|
"p-queue": "^6.0.2",
|
|
74
74
|
"protobufjs": "^7.0.0",
|
|
75
|
-
"retry-request": "^
|
|
75
|
+
"retry-request": "^7.0.0",
|
|
76
76
|
"split-array-stream": "^2.0.0",
|
|
77
77
|
"stack-trace": "0.0.10",
|
|
78
78
|
"stream-events": "^1.0.4",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@types/concat-stream": "^2.0.0",
|
|
84
84
|
"@types/extend": "^3.0.0",
|
|
85
|
-
"@types/is": "0.0.
|
|
85
|
+
"@types/is": "0.0.25",
|
|
86
86
|
"@types/lodash.snakecase": "^4.1.4",
|
|
87
87
|
"@types/merge-stream": "^1.1.2",
|
|
88
88
|
"@types/mocha": "^9.0.0",
|
|
@@ -97,12 +97,12 @@
|
|
|
97
97
|
"c8": "^8.0.1",
|
|
98
98
|
"codecov": "^3.0.2",
|
|
99
99
|
"concat-stream": "^2.0.0",
|
|
100
|
-
"dedent": "^0.
|
|
100
|
+
"dedent": "^1.0.0",
|
|
101
101
|
"execa": "^5.0.0",
|
|
102
|
-
"gapic-tools": "^0.
|
|
102
|
+
"gapic-tools": "^0.2.0",
|
|
103
103
|
"gts": "^5.0.0",
|
|
104
104
|
"jsdoc": "^4.0.0",
|
|
105
|
-
"jsdoc-fresh": "^
|
|
105
|
+
"jsdoc-fresh": "^3.0.0",
|
|
106
106
|
"jsdoc-region-tag": "^3.0.0",
|
|
107
107
|
"linkinator": "^4.0.0",
|
|
108
108
|
"lodash.random": "^3.2.0",
|