@google-cloud/spanner 7.19.0 → 7.20.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 +0 -144
- package/build/protos/protos.js +48 -288
- package/build/protos/protos.json +3 -0
- package/build/src/batch-transaction.js +5 -3
- package/build/src/codec.d.ts +85 -0
- package/build/src/codec.js +244 -1
- package/build/src/database.d.ts +14 -2
- package/build/src/database.js +35 -25
- package/build/src/index.d.ts +22 -2
- package/build/src/index.js +74 -2
- package/build/src/instance.js +4 -0
- package/build/src/request_id_header.d.ts +4 -1
- package/build/src/request_id_header.js +21 -1
- package/build/src/session-factory.d.ts +24 -2
- package/build/src/session-factory.js +27 -3
- package/build/src/session.d.ts +1 -0
- package/build/src/session.js +11 -3
- package/build/src/table.d.ts +3 -0
- package/build/src/table.js +6 -0
- package/build/src/transaction-runner.d.ts +2 -0
- package/build/src/transaction-runner.js +7 -7
- package/build/src/transaction.d.ts +5 -0
- package/build/src/transaction.js +39 -8
- package/package.json +2 -2
- package/CHANGELOG.md +0 -1604
package/README.md
CHANGED
|
@@ -157,6 +157,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-spanner/tre
|
|
|
157
157
|
| Numeric-add-column | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/numeric-add-column.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/numeric-add-column.js,samples/README.md) |
|
|
158
158
|
| Numeric-query-parameter | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/numeric-query-parameter.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/numeric-query-parameter.js,samples/README.md) |
|
|
159
159
|
| Numeric-update-data | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/numeric-update-data.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/numeric-update-data.js,samples/README.md) |
|
|
160
|
+
| Observability (Tracing) with OpenTelemetry using OTLP | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/observability-traces-otlp.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/observability-traces-otlp.js,samples/README.md) |
|
|
160
161
|
| Observability (Tracing) with OpenTelemetry | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/observability-traces.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/observability-traces.js,samples/README.md) |
|
|
161
162
|
| Adds a column to an existing table in a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-add-column.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/pg-add-column.js,samples/README.md) |
|
|
162
163
|
| Showcase the rules for case-sensitivity and case folding for a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-case-sensitivity.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/pg-case-sensitivity.js,samples/README.md) |
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -19591,9 +19591,6 @@ export namespace google {
|
|
|
19591
19591
|
/** ReadAction limit. */
|
|
19592
19592
|
public limit: number;
|
|
19593
19593
|
|
|
19594
|
-
/** ReadAction _index. */
|
|
19595
|
-
public _index?: "index";
|
|
19596
|
-
|
|
19597
19594
|
/**
|
|
19598
19595
|
* Creates a new ReadAction instance using the specified properties.
|
|
19599
19596
|
* @param [properties] Properties to set
|
|
@@ -19912,9 +19909,6 @@ export namespace google {
|
|
|
19912
19909
|
/** DmlAction autocommitIfSupported. */
|
|
19913
19910
|
public autocommitIfSupported?: (boolean|null);
|
|
19914
19911
|
|
|
19915
|
-
/** DmlAction _autocommitIfSupported. */
|
|
19916
|
-
public _autocommitIfSupported?: "autocommitIfSupported";
|
|
19917
|
-
|
|
19918
19912
|
/**
|
|
19919
19913
|
* Creates a new DmlAction instance using the specified properties.
|
|
19920
19914
|
* @param [properties] Properties to set
|
|
@@ -20178,9 +20172,6 @@ export namespace google {
|
|
|
20178
20172
|
/** Value valueType. */
|
|
20179
20173
|
public valueType?: ("isNull"|"intValue"|"boolValue"|"doubleValue"|"bytesValue"|"stringValue"|"structValue"|"timestampValue"|"dateDaysValue"|"isCommitTimestamp"|"arrayValue");
|
|
20180
20174
|
|
|
20181
|
-
/** Value _arrayType. */
|
|
20182
|
-
public _arrayType?: "arrayType";
|
|
20183
|
-
|
|
20184
20175
|
/**
|
|
20185
20176
|
* Creates a new Value instance using the specified properties.
|
|
20186
20177
|
* @param [properties] Properties to set
|
|
@@ -20290,9 +20281,6 @@ export namespace google {
|
|
|
20290
20281
|
/** KeyRange type. */
|
|
20291
20282
|
public type?: (google.spanner.executor.v1.KeyRange.Type|keyof typeof google.spanner.executor.v1.KeyRange.Type|null);
|
|
20292
20283
|
|
|
20293
|
-
/** KeyRange _type. */
|
|
20294
|
-
public _type?: "type";
|
|
20295
|
-
|
|
20296
20284
|
/**
|
|
20297
20285
|
* Creates a new KeyRange instance using the specified properties.
|
|
20298
20286
|
* @param [properties] Properties to set
|
|
@@ -21156,9 +21144,6 @@ export namespace google {
|
|
|
21156
21144
|
/** PartitionedUpdateAction update. */
|
|
21157
21145
|
public update?: (google.spanner.executor.v1.IQueryAction|null);
|
|
21158
21146
|
|
|
21159
|
-
/** PartitionedUpdateAction _options. */
|
|
21160
|
-
public _options?: "options";
|
|
21161
|
-
|
|
21162
21147
|
/**
|
|
21163
21148
|
* Creates a new PartitionedUpdateAction instance using the specified properties.
|
|
21164
21149
|
* @param [properties] Properties to set
|
|
@@ -21264,12 +21249,6 @@ export namespace google {
|
|
|
21264
21249
|
/** ExecutePartitionedUpdateOptions tag. */
|
|
21265
21250
|
public tag?: (string|null);
|
|
21266
21251
|
|
|
21267
|
-
/** ExecutePartitionedUpdateOptions _rpcPriority. */
|
|
21268
|
-
public _rpcPriority?: "rpcPriority";
|
|
21269
|
-
|
|
21270
|
-
/** ExecutePartitionedUpdateOptions _tag. */
|
|
21271
|
-
public _tag?: "tag";
|
|
21272
|
-
|
|
21273
21252
|
/**
|
|
21274
21253
|
* Creates a new ExecutePartitionedUpdateOptions instance using the specified properties.
|
|
21275
21254
|
* @param [properties] Properties to set
|
|
@@ -21386,12 +21365,6 @@ export namespace google {
|
|
|
21386
21365
|
/** StartTransactionAction executionOptions. */
|
|
21387
21366
|
public executionOptions?: (google.spanner.executor.v1.ITransactionExecutionOptions|null);
|
|
21388
21367
|
|
|
21389
|
-
/** StartTransactionAction _concurrency. */
|
|
21390
|
-
public _concurrency?: "concurrency";
|
|
21391
|
-
|
|
21392
|
-
/** StartTransactionAction _executionOptions. */
|
|
21393
|
-
public _executionOptions?: "executionOptions";
|
|
21394
|
-
|
|
21395
21368
|
/**
|
|
21396
21369
|
* Creates a new StartTransactionAction instance using the specified properties.
|
|
21397
21370
|
* @param [properties] Properties to set
|
|
@@ -22448,9 +22421,6 @@ export namespace google {
|
|
|
22448
22421
|
/** UpdateUserInstanceConfigAction labels. */
|
|
22449
22422
|
public labels: { [k: string]: string };
|
|
22450
22423
|
|
|
22451
|
-
/** UpdateUserInstanceConfigAction _displayName. */
|
|
22452
|
-
public _displayName?: "displayName";
|
|
22453
|
-
|
|
22454
22424
|
/**
|
|
22455
22425
|
* Creates a new UpdateUserInstanceConfigAction instance using the specified properties.
|
|
22456
22426
|
* @param [properties] Properties to set
|
|
@@ -22766,12 +22736,6 @@ export namespace google {
|
|
|
22766
22736
|
/** ListCloudInstanceConfigsAction pageToken. */
|
|
22767
22737
|
public pageToken?: (string|null);
|
|
22768
22738
|
|
|
22769
|
-
/** ListCloudInstanceConfigsAction _pageSize. */
|
|
22770
|
-
public _pageSize?: "pageSize";
|
|
22771
|
-
|
|
22772
|
-
/** ListCloudInstanceConfigsAction _pageToken. */
|
|
22773
|
-
public _pageToken?: "pageToken";
|
|
22774
|
-
|
|
22775
22739
|
/**
|
|
22776
22740
|
* Creates a new ListCloudInstanceConfigsAction instance using the specified properties.
|
|
22777
22741
|
* @param [properties] Properties to set
|
|
@@ -22905,15 +22869,6 @@ export namespace google {
|
|
|
22905
22869
|
/** CreateCloudInstanceAction labels. */
|
|
22906
22870
|
public labels: { [k: string]: string };
|
|
22907
22871
|
|
|
22908
|
-
/** CreateCloudInstanceAction _nodeCount. */
|
|
22909
|
-
public _nodeCount?: "nodeCount";
|
|
22910
|
-
|
|
22911
|
-
/** CreateCloudInstanceAction _processingUnits. */
|
|
22912
|
-
public _processingUnits?: "processingUnits";
|
|
22913
|
-
|
|
22914
|
-
/** CreateCloudInstanceAction _autoscalingConfig. */
|
|
22915
|
-
public _autoscalingConfig?: "autoscalingConfig";
|
|
22916
|
-
|
|
22917
22872
|
/**
|
|
22918
22873
|
* Creates a new CreateCloudInstanceAction instance using the specified properties.
|
|
22919
22874
|
* @param [properties] Properties to set
|
|
@@ -23047,18 +23002,6 @@ export namespace google {
|
|
|
23047
23002
|
/** UpdateCloudInstanceAction labels. */
|
|
23048
23003
|
public labels: { [k: string]: string };
|
|
23049
23004
|
|
|
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
|
-
|
|
23062
23005
|
/**
|
|
23063
23006
|
* Creates a new UpdateCloudInstanceAction instance using the specified properties.
|
|
23064
23007
|
* @param [properties] Properties to set
|
|
@@ -23295,12 +23238,6 @@ export namespace google {
|
|
|
23295
23238
|
/** CreateCloudDatabaseAction protoDescriptors. */
|
|
23296
23239
|
public protoDescriptors?: (Uint8Array|string|null);
|
|
23297
23240
|
|
|
23298
|
-
/** CreateCloudDatabaseAction _dialect. */
|
|
23299
|
-
public _dialect?: "dialect";
|
|
23300
|
-
|
|
23301
|
-
/** CreateCloudDatabaseAction _protoDescriptors. */
|
|
23302
|
-
public _protoDescriptors?: "protoDescriptors";
|
|
23303
|
-
|
|
23304
23241
|
/**
|
|
23305
23242
|
* Creates a new CreateCloudDatabaseAction instance using the specified properties.
|
|
23306
23243
|
* @param [properties] Properties to set
|
|
@@ -23428,9 +23365,6 @@ export namespace google {
|
|
|
23428
23365
|
/** UpdateCloudDatabaseDdlAction protoDescriptors. */
|
|
23429
23366
|
public protoDescriptors?: (Uint8Array|string|null);
|
|
23430
23367
|
|
|
23431
|
-
/** UpdateCloudDatabaseDdlAction _protoDescriptors. */
|
|
23432
|
-
public _protoDescriptors?: "protoDescriptors";
|
|
23433
|
-
|
|
23434
23368
|
/**
|
|
23435
23369
|
* Creates a new UpdateCloudDatabaseDdlAction instance using the specified properties.
|
|
23436
23370
|
* @param [properties] Properties to set
|
|
@@ -23758,9 +23692,6 @@ export namespace google {
|
|
|
23758
23692
|
/** ChangeQuorumCloudDatabaseAction servingLocations. */
|
|
23759
23693
|
public servingLocations: string[];
|
|
23760
23694
|
|
|
23761
|
-
/** ChangeQuorumCloudDatabaseAction _databaseUri. */
|
|
23762
|
-
public _databaseUri?: "databaseUri";
|
|
23763
|
-
|
|
23764
23695
|
/**
|
|
23765
23696
|
* Creates a new ChangeQuorumCloudDatabaseAction instance using the specified properties.
|
|
23766
23697
|
* @param [properties] Properties to set
|
|
@@ -23991,15 +23922,6 @@ export namespace google {
|
|
|
23991
23922
|
/** ListCloudInstancesAction pageToken. */
|
|
23992
23923
|
public pageToken?: (string|null);
|
|
23993
23924
|
|
|
23994
|
-
/** ListCloudInstancesAction _filter. */
|
|
23995
|
-
public _filter?: "filter";
|
|
23996
|
-
|
|
23997
|
-
/** ListCloudInstancesAction _pageSize. */
|
|
23998
|
-
public _pageSize?: "pageSize";
|
|
23999
|
-
|
|
24000
|
-
/** ListCloudInstancesAction _pageToken. */
|
|
24001
|
-
public _pageToken?: "pageToken";
|
|
24002
|
-
|
|
24003
23925
|
/**
|
|
24004
23926
|
* Creates a new ListCloudInstancesAction instance using the specified properties.
|
|
24005
23927
|
* @param [properties] Properties to set
|
|
@@ -24593,9 +24515,6 @@ export namespace google {
|
|
|
24593
24515
|
/** CreateCloudBackupAction encryptionConfig. */
|
|
24594
24516
|
public encryptionConfig?: (google.spanner.admin.database.v1.IEncryptionConfig|null);
|
|
24595
24517
|
|
|
24596
|
-
/** CreateCloudBackupAction _versionTime. */
|
|
24597
|
-
public _versionTime?: "versionTime";
|
|
24598
|
-
|
|
24599
24518
|
/**
|
|
24600
24519
|
* Creates a new CreateCloudBackupAction instance using the specified properties.
|
|
24601
24520
|
* @param [properties] Properties to set
|
|
@@ -25913,12 +25832,6 @@ export namespace google {
|
|
|
25913
25832
|
/** GenerateDbPartitionsForReadAction maxPartitionCount. */
|
|
25914
25833
|
public maxPartitionCount?: (number|Long|string|null);
|
|
25915
25834
|
|
|
25916
|
-
/** GenerateDbPartitionsForReadAction _desiredBytesPerPartition. */
|
|
25917
|
-
public _desiredBytesPerPartition?: "desiredBytesPerPartition";
|
|
25918
|
-
|
|
25919
|
-
/** GenerateDbPartitionsForReadAction _maxPartitionCount. */
|
|
25920
|
-
public _maxPartitionCount?: "maxPartitionCount";
|
|
25921
|
-
|
|
25922
25835
|
/**
|
|
25923
25836
|
* Creates a new GenerateDbPartitionsForReadAction instance using the specified properties.
|
|
25924
25837
|
* @param [properties] Properties to set
|
|
@@ -26022,9 +25935,6 @@ export namespace google {
|
|
|
26022
25935
|
/** GenerateDbPartitionsForQueryAction desiredBytesPerPartition. */
|
|
26023
25936
|
public desiredBytesPerPartition?: (number|Long|string|null);
|
|
26024
25937
|
|
|
26025
|
-
/** GenerateDbPartitionsForQueryAction _desiredBytesPerPartition. */
|
|
26026
|
-
public _desiredBytesPerPartition?: "desiredBytesPerPartition";
|
|
26027
|
-
|
|
26028
25938
|
/**
|
|
26029
25939
|
* Creates a new GenerateDbPartitionsForQueryAction instance using the specified properties.
|
|
26030
25940
|
* @param [properties] Properties to set
|
|
@@ -26140,12 +26050,6 @@ export namespace google {
|
|
|
26140
26050
|
/** BatchPartition index. */
|
|
26141
26051
|
public index?: (string|null);
|
|
26142
26052
|
|
|
26143
|
-
/** BatchPartition _table. */
|
|
26144
|
-
public _table?: "table";
|
|
26145
|
-
|
|
26146
|
-
/** BatchPartition _index. */
|
|
26147
|
-
public _index?: "index";
|
|
26148
|
-
|
|
26149
26053
|
/**
|
|
26150
26054
|
* Creates a new BatchPartition instance using the specified properties.
|
|
26151
26055
|
* @param [properties] Properties to set
|
|
@@ -26382,21 +26286,6 @@ export namespace google {
|
|
|
26382
26286
|
/** ExecuteChangeStreamQuery cloudDatabaseRole. */
|
|
26383
26287
|
public cloudDatabaseRole?: (string|null);
|
|
26384
26288
|
|
|
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
|
-
|
|
26400
26289
|
/**
|
|
26401
26290
|
* Creates a new ExecuteChangeStreamQuery instance using the specified properties.
|
|
26402
26291
|
* @param [properties] Properties to set
|
|
@@ -26548,27 +26437,6 @@ export namespace google {
|
|
|
26548
26437
|
/** SpannerActionOutcome changeStreamRecords. */
|
|
26549
26438
|
public changeStreamRecords: google.spanner.executor.v1.IChangeStreamRecord[];
|
|
26550
26439
|
|
|
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
|
-
|
|
26572
26440
|
/**
|
|
26573
26441
|
* Creates a new SpannerActionOutcome instance using the specified properties.
|
|
26574
26442
|
* @param [properties] Properties to set
|
|
@@ -27368,15 +27236,6 @@ export namespace google {
|
|
|
27368
27236
|
/** ReadResult rowType. */
|
|
27369
27237
|
public rowType?: (google.spanner.v1.IStructType|null);
|
|
27370
27238
|
|
|
27371
|
-
/** ReadResult _index. */
|
|
27372
|
-
public _index?: "index";
|
|
27373
|
-
|
|
27374
|
-
/** ReadResult _requestIndex. */
|
|
27375
|
-
public _requestIndex?: "requestIndex";
|
|
27376
|
-
|
|
27377
|
-
/** ReadResult _rowType. */
|
|
27378
|
-
public _rowType?: "rowType";
|
|
27379
|
-
|
|
27380
27239
|
/**
|
|
27381
27240
|
* Creates a new ReadResult instance using the specified properties.
|
|
27382
27241
|
* @param [properties] Properties to set
|
|
@@ -27480,9 +27339,6 @@ export namespace google {
|
|
|
27480
27339
|
/** QueryResult rowType. */
|
|
27481
27340
|
public rowType?: (google.spanner.v1.IStructType|null);
|
|
27482
27341
|
|
|
27483
|
-
/** QueryResult _rowType. */
|
|
27484
|
-
public _rowType?: "rowType";
|
|
27485
|
-
|
|
27486
27342
|
/**
|
|
27487
27343
|
* Creates a new QueryResult instance using the specified properties.
|
|
27488
27344
|
* @param [properties] Properties to set
|