@google-cloud/spanner 7.20.0 → 7.21.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/README.md +1 -0
- package/build/protos/protos.d.ts +144 -0
- package/build/protos/protos.js +1281 -379
- package/build/protos/protos.json +39 -18
- package/build/src/database.js +38 -20
- package/build/src/instrument.d.ts +2 -0
- package/build/src/instrument.js +10 -5
- package/build/src/session.d.ts +2 -0
- package/build/src/session.js +2 -1
- package/build/src/table.js +2 -0
- package/build/src/transaction.d.ts +2 -1
- package/build/src/transaction.js +46 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,6 +111,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-spanner/tre
|
|
|
111
111
|
| Creates an incremental backup schedule | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/create-incremental-backup-schedule.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/create-incremental-backup-schedule.js,samples/README.md) |
|
|
112
112
|
| Create-instance-without-default-backup-schedules | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/create-instance-without-default-backup-schedules.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/create-instance-without-default-backup-schedules.js,samples/README.md) |
|
|
113
113
|
| CRUD | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/crud.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/crud.js,samples/README.md) |
|
|
114
|
+
| Adds split points to a database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-add-split-points.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-add-split-points.js,samples/README.md) |
|
|
114
115
|
| Creates a new database with a specific default leader | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-create-with-default-leader.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-create-with-default-leader.js,samples/README.md) |
|
|
115
116
|
| Database-create-with-encryption-key | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-create-with-encryption-key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-create-with-encryption-key.js,samples/README.md) |
|
|
116
117
|
| Database-create-with-multiple-kms-keys | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/database-create-with-multiple-kms-keys.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/database-create-with-multiple-kms-keys.js,samples/README.md) |
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -19591,6 +19591,9 @@ export namespace google {
|
|
|
19591
19591
|
/** ReadAction limit. */
|
|
19592
19592
|
public limit: number;
|
|
19593
19593
|
|
|
19594
|
+
/** ReadAction _index. */
|
|
19595
|
+
public _index?: "index";
|
|
19596
|
+
|
|
19594
19597
|
/**
|
|
19595
19598
|
* Creates a new ReadAction instance using the specified properties.
|
|
19596
19599
|
* @param [properties] Properties to set
|
|
@@ -19909,6 +19912,9 @@ export namespace google {
|
|
|
19909
19912
|
/** DmlAction autocommitIfSupported. */
|
|
19910
19913
|
public autocommitIfSupported?: (boolean|null);
|
|
19911
19914
|
|
|
19915
|
+
/** DmlAction _autocommitIfSupported. */
|
|
19916
|
+
public _autocommitIfSupported?: "autocommitIfSupported";
|
|
19917
|
+
|
|
19912
19918
|
/**
|
|
19913
19919
|
* Creates a new DmlAction instance using the specified properties.
|
|
19914
19920
|
* @param [properties] Properties to set
|
|
@@ -20172,6 +20178,9 @@ export namespace google {
|
|
|
20172
20178
|
/** Value valueType. */
|
|
20173
20179
|
public valueType?: ("isNull"|"intValue"|"boolValue"|"doubleValue"|"bytesValue"|"stringValue"|"structValue"|"timestampValue"|"dateDaysValue"|"isCommitTimestamp"|"arrayValue");
|
|
20174
20180
|
|
|
20181
|
+
/** Value _arrayType. */
|
|
20182
|
+
public _arrayType?: "arrayType";
|
|
20183
|
+
|
|
20175
20184
|
/**
|
|
20176
20185
|
* Creates a new Value instance using the specified properties.
|
|
20177
20186
|
* @param [properties] Properties to set
|
|
@@ -20281,6 +20290,9 @@ export namespace google {
|
|
|
20281
20290
|
/** KeyRange type. */
|
|
20282
20291
|
public type?: (google.spanner.executor.v1.KeyRange.Type|keyof typeof google.spanner.executor.v1.KeyRange.Type|null);
|
|
20283
20292
|
|
|
20293
|
+
/** KeyRange _type. */
|
|
20294
|
+
public _type?: "type";
|
|
20295
|
+
|
|
20284
20296
|
/**
|
|
20285
20297
|
* Creates a new KeyRange instance using the specified properties.
|
|
20286
20298
|
* @param [properties] Properties to set
|
|
@@ -21144,6 +21156,9 @@ export namespace google {
|
|
|
21144
21156
|
/** PartitionedUpdateAction update. */
|
|
21145
21157
|
public update?: (google.spanner.executor.v1.IQueryAction|null);
|
|
21146
21158
|
|
|
21159
|
+
/** PartitionedUpdateAction _options. */
|
|
21160
|
+
public _options?: "options";
|
|
21161
|
+
|
|
21147
21162
|
/**
|
|
21148
21163
|
* Creates a new PartitionedUpdateAction instance using the specified properties.
|
|
21149
21164
|
* @param [properties] Properties to set
|
|
@@ -21249,6 +21264,12 @@ export namespace google {
|
|
|
21249
21264
|
/** ExecutePartitionedUpdateOptions tag. */
|
|
21250
21265
|
public tag?: (string|null);
|
|
21251
21266
|
|
|
21267
|
+
/** ExecutePartitionedUpdateOptions _rpcPriority. */
|
|
21268
|
+
public _rpcPriority?: "rpcPriority";
|
|
21269
|
+
|
|
21270
|
+
/** ExecutePartitionedUpdateOptions _tag. */
|
|
21271
|
+
public _tag?: "tag";
|
|
21272
|
+
|
|
21252
21273
|
/**
|
|
21253
21274
|
* Creates a new ExecutePartitionedUpdateOptions instance using the specified properties.
|
|
21254
21275
|
* @param [properties] Properties to set
|
|
@@ -21365,6 +21386,12 @@ export namespace google {
|
|
|
21365
21386
|
/** StartTransactionAction executionOptions. */
|
|
21366
21387
|
public executionOptions?: (google.spanner.executor.v1.ITransactionExecutionOptions|null);
|
|
21367
21388
|
|
|
21389
|
+
/** StartTransactionAction _concurrency. */
|
|
21390
|
+
public _concurrency?: "concurrency";
|
|
21391
|
+
|
|
21392
|
+
/** StartTransactionAction _executionOptions. */
|
|
21393
|
+
public _executionOptions?: "executionOptions";
|
|
21394
|
+
|
|
21368
21395
|
/**
|
|
21369
21396
|
* Creates a new StartTransactionAction instance using the specified properties.
|
|
21370
21397
|
* @param [properties] Properties to set
|
|
@@ -22421,6 +22448,9 @@ export namespace google {
|
|
|
22421
22448
|
/** UpdateUserInstanceConfigAction labels. */
|
|
22422
22449
|
public labels: { [k: string]: string };
|
|
22423
22450
|
|
|
22451
|
+
/** UpdateUserInstanceConfigAction _displayName. */
|
|
22452
|
+
public _displayName?: "displayName";
|
|
22453
|
+
|
|
22424
22454
|
/**
|
|
22425
22455
|
* Creates a new UpdateUserInstanceConfigAction instance using the specified properties.
|
|
22426
22456
|
* @param [properties] Properties to set
|
|
@@ -22736,6 +22766,12 @@ export namespace google {
|
|
|
22736
22766
|
/** ListCloudInstanceConfigsAction pageToken. */
|
|
22737
22767
|
public pageToken?: (string|null);
|
|
22738
22768
|
|
|
22769
|
+
/** ListCloudInstanceConfigsAction _pageSize. */
|
|
22770
|
+
public _pageSize?: "pageSize";
|
|
22771
|
+
|
|
22772
|
+
/** ListCloudInstanceConfigsAction _pageToken. */
|
|
22773
|
+
public _pageToken?: "pageToken";
|
|
22774
|
+
|
|
22739
22775
|
/**
|
|
22740
22776
|
* Creates a new ListCloudInstanceConfigsAction instance using the specified properties.
|
|
22741
22777
|
* @param [properties] Properties to set
|
|
@@ -22869,6 +22905,15 @@ export namespace google {
|
|
|
22869
22905
|
/** CreateCloudInstanceAction labels. */
|
|
22870
22906
|
public labels: { [k: string]: string };
|
|
22871
22907
|
|
|
22908
|
+
/** CreateCloudInstanceAction _nodeCount. */
|
|
22909
|
+
public _nodeCount?: "nodeCount";
|
|
22910
|
+
|
|
22911
|
+
/** CreateCloudInstanceAction _processingUnits. */
|
|
22912
|
+
public _processingUnits?: "processingUnits";
|
|
22913
|
+
|
|
22914
|
+
/** CreateCloudInstanceAction _autoscalingConfig. */
|
|
22915
|
+
public _autoscalingConfig?: "autoscalingConfig";
|
|
22916
|
+
|
|
22872
22917
|
/**
|
|
22873
22918
|
* Creates a new CreateCloudInstanceAction instance using the specified properties.
|
|
22874
22919
|
* @param [properties] Properties to set
|
|
@@ -23002,6 +23047,18 @@ export namespace google {
|
|
|
23002
23047
|
/** UpdateCloudInstanceAction labels. */
|
|
23003
23048
|
public labels: { [k: string]: string };
|
|
23004
23049
|
|
|
23050
|
+
/** UpdateCloudInstanceAction _displayName. */
|
|
23051
|
+
public _displayName?: "displayName";
|
|
23052
|
+
|
|
23053
|
+
/** UpdateCloudInstanceAction _nodeCount. */
|
|
23054
|
+
public _nodeCount?: "nodeCount";
|
|
23055
|
+
|
|
23056
|
+
/** UpdateCloudInstanceAction _processingUnits. */
|
|
23057
|
+
public _processingUnits?: "processingUnits";
|
|
23058
|
+
|
|
23059
|
+
/** UpdateCloudInstanceAction _autoscalingConfig. */
|
|
23060
|
+
public _autoscalingConfig?: "autoscalingConfig";
|
|
23061
|
+
|
|
23005
23062
|
/**
|
|
23006
23063
|
* Creates a new UpdateCloudInstanceAction instance using the specified properties.
|
|
23007
23064
|
* @param [properties] Properties to set
|
|
@@ -23238,6 +23295,12 @@ export namespace google {
|
|
|
23238
23295
|
/** CreateCloudDatabaseAction protoDescriptors. */
|
|
23239
23296
|
public protoDescriptors?: (Uint8Array|string|null);
|
|
23240
23297
|
|
|
23298
|
+
/** CreateCloudDatabaseAction _dialect. */
|
|
23299
|
+
public _dialect?: "dialect";
|
|
23300
|
+
|
|
23301
|
+
/** CreateCloudDatabaseAction _protoDescriptors. */
|
|
23302
|
+
public _protoDescriptors?: "protoDescriptors";
|
|
23303
|
+
|
|
23241
23304
|
/**
|
|
23242
23305
|
* Creates a new CreateCloudDatabaseAction instance using the specified properties.
|
|
23243
23306
|
* @param [properties] Properties to set
|
|
@@ -23365,6 +23428,9 @@ export namespace google {
|
|
|
23365
23428
|
/** UpdateCloudDatabaseDdlAction protoDescriptors. */
|
|
23366
23429
|
public protoDescriptors?: (Uint8Array|string|null);
|
|
23367
23430
|
|
|
23431
|
+
/** UpdateCloudDatabaseDdlAction _protoDescriptors. */
|
|
23432
|
+
public _protoDescriptors?: "protoDescriptors";
|
|
23433
|
+
|
|
23368
23434
|
/**
|
|
23369
23435
|
* Creates a new UpdateCloudDatabaseDdlAction instance using the specified properties.
|
|
23370
23436
|
* @param [properties] Properties to set
|
|
@@ -23692,6 +23758,9 @@ export namespace google {
|
|
|
23692
23758
|
/** ChangeQuorumCloudDatabaseAction servingLocations. */
|
|
23693
23759
|
public servingLocations: string[];
|
|
23694
23760
|
|
|
23761
|
+
/** ChangeQuorumCloudDatabaseAction _databaseUri. */
|
|
23762
|
+
public _databaseUri?: "databaseUri";
|
|
23763
|
+
|
|
23695
23764
|
/**
|
|
23696
23765
|
* Creates a new ChangeQuorumCloudDatabaseAction instance using the specified properties.
|
|
23697
23766
|
* @param [properties] Properties to set
|
|
@@ -23922,6 +23991,15 @@ export namespace google {
|
|
|
23922
23991
|
/** ListCloudInstancesAction pageToken. */
|
|
23923
23992
|
public pageToken?: (string|null);
|
|
23924
23993
|
|
|
23994
|
+
/** ListCloudInstancesAction _filter. */
|
|
23995
|
+
public _filter?: "filter";
|
|
23996
|
+
|
|
23997
|
+
/** ListCloudInstancesAction _pageSize. */
|
|
23998
|
+
public _pageSize?: "pageSize";
|
|
23999
|
+
|
|
24000
|
+
/** ListCloudInstancesAction _pageToken. */
|
|
24001
|
+
public _pageToken?: "pageToken";
|
|
24002
|
+
|
|
23925
24003
|
/**
|
|
23926
24004
|
* Creates a new ListCloudInstancesAction instance using the specified properties.
|
|
23927
24005
|
* @param [properties] Properties to set
|
|
@@ -24515,6 +24593,9 @@ export namespace google {
|
|
|
24515
24593
|
/** CreateCloudBackupAction encryptionConfig. */
|
|
24516
24594
|
public encryptionConfig?: (google.spanner.admin.database.v1.IEncryptionConfig|null);
|
|
24517
24595
|
|
|
24596
|
+
/** CreateCloudBackupAction _versionTime. */
|
|
24597
|
+
public _versionTime?: "versionTime";
|
|
24598
|
+
|
|
24518
24599
|
/**
|
|
24519
24600
|
* Creates a new CreateCloudBackupAction instance using the specified properties.
|
|
24520
24601
|
* @param [properties] Properties to set
|
|
@@ -25832,6 +25913,12 @@ export namespace google {
|
|
|
25832
25913
|
/** GenerateDbPartitionsForReadAction maxPartitionCount. */
|
|
25833
25914
|
public maxPartitionCount?: (number|Long|string|null);
|
|
25834
25915
|
|
|
25916
|
+
/** GenerateDbPartitionsForReadAction _desiredBytesPerPartition. */
|
|
25917
|
+
public _desiredBytesPerPartition?: "desiredBytesPerPartition";
|
|
25918
|
+
|
|
25919
|
+
/** GenerateDbPartitionsForReadAction _maxPartitionCount. */
|
|
25920
|
+
public _maxPartitionCount?: "maxPartitionCount";
|
|
25921
|
+
|
|
25835
25922
|
/**
|
|
25836
25923
|
* Creates a new GenerateDbPartitionsForReadAction instance using the specified properties.
|
|
25837
25924
|
* @param [properties] Properties to set
|
|
@@ -25935,6 +26022,9 @@ export namespace google {
|
|
|
25935
26022
|
/** GenerateDbPartitionsForQueryAction desiredBytesPerPartition. */
|
|
25936
26023
|
public desiredBytesPerPartition?: (number|Long|string|null);
|
|
25937
26024
|
|
|
26025
|
+
/** GenerateDbPartitionsForQueryAction _desiredBytesPerPartition. */
|
|
26026
|
+
public _desiredBytesPerPartition?: "desiredBytesPerPartition";
|
|
26027
|
+
|
|
25938
26028
|
/**
|
|
25939
26029
|
* Creates a new GenerateDbPartitionsForQueryAction instance using the specified properties.
|
|
25940
26030
|
* @param [properties] Properties to set
|
|
@@ -26050,6 +26140,12 @@ export namespace google {
|
|
|
26050
26140
|
/** BatchPartition index. */
|
|
26051
26141
|
public index?: (string|null);
|
|
26052
26142
|
|
|
26143
|
+
/** BatchPartition _table. */
|
|
26144
|
+
public _table?: "table";
|
|
26145
|
+
|
|
26146
|
+
/** BatchPartition _index. */
|
|
26147
|
+
public _index?: "index";
|
|
26148
|
+
|
|
26053
26149
|
/**
|
|
26054
26150
|
* Creates a new BatchPartition instance using the specified properties.
|
|
26055
26151
|
* @param [properties] Properties to set
|
|
@@ -26286,6 +26382,21 @@ export namespace google {
|
|
|
26286
26382
|
/** ExecuteChangeStreamQuery cloudDatabaseRole. */
|
|
26287
26383
|
public cloudDatabaseRole?: (string|null);
|
|
26288
26384
|
|
|
26385
|
+
/** ExecuteChangeStreamQuery _endTime. */
|
|
26386
|
+
public _endTime?: "endTime";
|
|
26387
|
+
|
|
26388
|
+
/** ExecuteChangeStreamQuery _partitionToken. */
|
|
26389
|
+
public _partitionToken?: "partitionToken";
|
|
26390
|
+
|
|
26391
|
+
/** ExecuteChangeStreamQuery _heartbeatMilliseconds. */
|
|
26392
|
+
public _heartbeatMilliseconds?: "heartbeatMilliseconds";
|
|
26393
|
+
|
|
26394
|
+
/** ExecuteChangeStreamQuery _deadlineSeconds. */
|
|
26395
|
+
public _deadlineSeconds?: "deadlineSeconds";
|
|
26396
|
+
|
|
26397
|
+
/** ExecuteChangeStreamQuery _cloudDatabaseRole. */
|
|
26398
|
+
public _cloudDatabaseRole?: "cloudDatabaseRole";
|
|
26399
|
+
|
|
26289
26400
|
/**
|
|
26290
26401
|
* Creates a new ExecuteChangeStreamQuery instance using the specified properties.
|
|
26291
26402
|
* @param [properties] Properties to set
|
|
@@ -26437,6 +26548,27 @@ export namespace google {
|
|
|
26437
26548
|
/** SpannerActionOutcome changeStreamRecords. */
|
|
26438
26549
|
public changeStreamRecords: google.spanner.executor.v1.IChangeStreamRecord[];
|
|
26439
26550
|
|
|
26551
|
+
/** SpannerActionOutcome _status. */
|
|
26552
|
+
public _status?: "status";
|
|
26553
|
+
|
|
26554
|
+
/** SpannerActionOutcome _commitTime. */
|
|
26555
|
+
public _commitTime?: "commitTime";
|
|
26556
|
+
|
|
26557
|
+
/** SpannerActionOutcome _readResult. */
|
|
26558
|
+
public _readResult?: "readResult";
|
|
26559
|
+
|
|
26560
|
+
/** SpannerActionOutcome _queryResult. */
|
|
26561
|
+
public _queryResult?: "queryResult";
|
|
26562
|
+
|
|
26563
|
+
/** SpannerActionOutcome _transactionRestarted. */
|
|
26564
|
+
public _transactionRestarted?: "transactionRestarted";
|
|
26565
|
+
|
|
26566
|
+
/** SpannerActionOutcome _batchTxnId. */
|
|
26567
|
+
public _batchTxnId?: "batchTxnId";
|
|
26568
|
+
|
|
26569
|
+
/** SpannerActionOutcome _adminResult. */
|
|
26570
|
+
public _adminResult?: "adminResult";
|
|
26571
|
+
|
|
26440
26572
|
/**
|
|
26441
26573
|
* Creates a new SpannerActionOutcome instance using the specified properties.
|
|
26442
26574
|
* @param [properties] Properties to set
|
|
@@ -27236,6 +27368,15 @@ export namespace google {
|
|
|
27236
27368
|
/** ReadResult rowType. */
|
|
27237
27369
|
public rowType?: (google.spanner.v1.IStructType|null);
|
|
27238
27370
|
|
|
27371
|
+
/** ReadResult _index. */
|
|
27372
|
+
public _index?: "index";
|
|
27373
|
+
|
|
27374
|
+
/** ReadResult _requestIndex. */
|
|
27375
|
+
public _requestIndex?: "requestIndex";
|
|
27376
|
+
|
|
27377
|
+
/** ReadResult _rowType. */
|
|
27378
|
+
public _rowType?: "rowType";
|
|
27379
|
+
|
|
27239
27380
|
/**
|
|
27240
27381
|
* Creates a new ReadResult instance using the specified properties.
|
|
27241
27382
|
* @param [properties] Properties to set
|
|
@@ -27339,6 +27480,9 @@ export namespace google {
|
|
|
27339
27480
|
/** QueryResult rowType. */
|
|
27340
27481
|
public rowType?: (google.spanner.v1.IStructType|null);
|
|
27341
27482
|
|
|
27483
|
+
/** QueryResult _rowType. */
|
|
27484
|
+
public _rowType?: "rowType";
|
|
27485
|
+
|
|
27342
27486
|
/**
|
|
27343
27487
|
* Creates a new QueryResult instance using the specified properties.
|
|
27344
27488
|
* @param [properties] Properties to set
|