@google-cloud/spanner 7.15.0 → 7.16.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 +12 -0
- package/build/protos/google/spanner/admin/instance/v1/common.proto +7 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +139 -16
- package/build/protos/google/spanner/v1/commit_response.proto +9 -0
- package/build/protos/google/spanner/v1/result_set.proto +21 -0
- package/build/protos/google/spanner/v1/spanner.proto +39 -2
- package/build/protos/google/spanner/v1/transaction.proto +34 -0
- package/build/protos/google/spanner/v1/type.proto +43 -30
- package/build/protos/protos.d.ts +1774 -1174
- package/build/protos/protos.js +5130 -3519
- package/build/protos/protos.json +307 -129
- package/build/src/database.d.ts +1 -0
- package/build/src/database.js +3 -0
- package/build/src/instrument.js +0 -1
- package/build/src/v1/spanner_client.d.ts +14 -0
- package/package.json +2 -2
package/build/protos/protos.json
CHANGED
|
@@ -3619,6 +3619,17 @@
|
|
|
3619
3619
|
"FULFILLMENT_PERIOD_EXTENDED": 2
|
|
3620
3620
|
}
|
|
3621
3621
|
},
|
|
3622
|
+
"ReplicaSelection": {
|
|
3623
|
+
"fields": {
|
|
3624
|
+
"location": {
|
|
3625
|
+
"type": "string",
|
|
3626
|
+
"id": 1,
|
|
3627
|
+
"options": {
|
|
3628
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3629
|
+
}
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
},
|
|
3622
3633
|
"InstanceAdmin": {
|
|
3623
3634
|
"options": {
|
|
3624
3635
|
"(google.api.default_host)": "spanner.googleapis.com",
|
|
@@ -4190,6 +4201,33 @@
|
|
|
4190
4201
|
}
|
|
4191
4202
|
}
|
|
4192
4203
|
},
|
|
4204
|
+
"ReplicaComputeCapacity": {
|
|
4205
|
+
"oneofs": {
|
|
4206
|
+
"computeCapacity": {
|
|
4207
|
+
"oneof": [
|
|
4208
|
+
"nodeCount",
|
|
4209
|
+
"processingUnits"
|
|
4210
|
+
]
|
|
4211
|
+
}
|
|
4212
|
+
},
|
|
4213
|
+
"fields": {
|
|
4214
|
+
"replicaSelection": {
|
|
4215
|
+
"type": "ReplicaSelection",
|
|
4216
|
+
"id": 1,
|
|
4217
|
+
"options": {
|
|
4218
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
4219
|
+
}
|
|
4220
|
+
},
|
|
4221
|
+
"nodeCount": {
|
|
4222
|
+
"type": "int32",
|
|
4223
|
+
"id": 2
|
|
4224
|
+
},
|
|
4225
|
+
"processingUnits": {
|
|
4226
|
+
"type": "int32",
|
|
4227
|
+
"id": 3
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
4230
|
+
},
|
|
4193
4231
|
"AutoscalingConfig": {
|
|
4194
4232
|
"fields": {
|
|
4195
4233
|
"autoscalingLimits": {
|
|
@@ -4205,6 +4243,14 @@
|
|
|
4205
4243
|
"options": {
|
|
4206
4244
|
"(google.api.field_behavior)": "REQUIRED"
|
|
4207
4245
|
}
|
|
4246
|
+
},
|
|
4247
|
+
"asymmetricAutoscalingOptions": {
|
|
4248
|
+
"rule": "repeated",
|
|
4249
|
+
"type": "AsymmetricAutoscalingOption",
|
|
4250
|
+
"id": 3,
|
|
4251
|
+
"options": {
|
|
4252
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
4253
|
+
}
|
|
4208
4254
|
}
|
|
4209
4255
|
},
|
|
4210
4256
|
"nested": {
|
|
@@ -4259,6 +4305,44 @@
|
|
|
4259
4305
|
}
|
|
4260
4306
|
}
|
|
4261
4307
|
}
|
|
4308
|
+
},
|
|
4309
|
+
"AsymmetricAutoscalingOption": {
|
|
4310
|
+
"fields": {
|
|
4311
|
+
"replicaSelection": {
|
|
4312
|
+
"type": "ReplicaSelection",
|
|
4313
|
+
"id": 1,
|
|
4314
|
+
"options": {
|
|
4315
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
4316
|
+
}
|
|
4317
|
+
},
|
|
4318
|
+
"overrides": {
|
|
4319
|
+
"type": "AutoscalingConfigOverrides",
|
|
4320
|
+
"id": 2,
|
|
4321
|
+
"options": {
|
|
4322
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
4325
|
+
},
|
|
4326
|
+
"nested": {
|
|
4327
|
+
"AutoscalingConfigOverrides": {
|
|
4328
|
+
"fields": {
|
|
4329
|
+
"autoscalingLimits": {
|
|
4330
|
+
"type": "AutoscalingLimits",
|
|
4331
|
+
"id": 1,
|
|
4332
|
+
"options": {
|
|
4333
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
4334
|
+
}
|
|
4335
|
+
},
|
|
4336
|
+
"autoscalingTargetHighPriorityCpuUtilizationPercent": {
|
|
4337
|
+
"type": "int32",
|
|
4338
|
+
"id": 2,
|
|
4339
|
+
"options": {
|
|
4340
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
}
|
|
4345
|
+
}
|
|
4262
4346
|
}
|
|
4263
4347
|
}
|
|
4264
4348
|
},
|
|
@@ -4298,6 +4382,14 @@
|
|
|
4298
4382
|
"type": "int32",
|
|
4299
4383
|
"id": 9
|
|
4300
4384
|
},
|
|
4385
|
+
"replicaComputeCapacity": {
|
|
4386
|
+
"rule": "repeated",
|
|
4387
|
+
"type": "ReplicaComputeCapacity",
|
|
4388
|
+
"id": 19,
|
|
4389
|
+
"options": {
|
|
4390
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4391
|
+
}
|
|
4392
|
+
},
|
|
4301
4393
|
"autoscalingConfig": {
|
|
4302
4394
|
"type": "AutoscalingConfig",
|
|
4303
4395
|
"id": 17,
|
|
@@ -4342,6 +4434,13 @@
|
|
|
4342
4434
|
"options": {
|
|
4343
4435
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
4344
4436
|
}
|
|
4437
|
+
},
|
|
4438
|
+
"defaultBackupScheduleType": {
|
|
4439
|
+
"type": "DefaultBackupScheduleType",
|
|
4440
|
+
"id": 23,
|
|
4441
|
+
"options": {
|
|
4442
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
4443
|
+
}
|
|
4345
4444
|
}
|
|
4346
4445
|
},
|
|
4347
4446
|
"nested": {
|
|
@@ -4359,6 +4458,13 @@
|
|
|
4359
4458
|
"ENTERPRISE": 2,
|
|
4360
4459
|
"ENTERPRISE_PLUS": 3
|
|
4361
4460
|
}
|
|
4461
|
+
},
|
|
4462
|
+
"DefaultBackupScheduleType": {
|
|
4463
|
+
"values": {
|
|
4464
|
+
"DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED": 0,
|
|
4465
|
+
"NONE": 1,
|
|
4466
|
+
"AUTOMATIC": 2
|
|
4467
|
+
}
|
|
4362
4468
|
}
|
|
4363
4469
|
}
|
|
4364
4470
|
},
|
|
@@ -7966,7 +8072,9 @@
|
|
|
7966
8072
|
"values": {
|
|
7967
8073
|
"NORMAL": 0,
|
|
7968
8074
|
"PLAN": 1,
|
|
7969
|
-
"PROFILE": 2
|
|
8075
|
+
"PROFILE": 2,
|
|
8076
|
+
"WITH_STATS": 3,
|
|
8077
|
+
"WITH_PLAN_AND_STATS": 4
|
|
7970
8078
|
}
|
|
7971
8079
|
},
|
|
7972
8080
|
"QueryOptions": {
|
|
@@ -8053,6 +8161,13 @@
|
|
|
8053
8161
|
"status": {
|
|
8054
8162
|
"type": "google.rpc.Status",
|
|
8055
8163
|
"id": 2
|
|
8164
|
+
},
|
|
8165
|
+
"precommitToken": {
|
|
8166
|
+
"type": "MultiplexedSessionPrecommitToken",
|
|
8167
|
+
"id": 3,
|
|
8168
|
+
"options": {
|
|
8169
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
8170
|
+
}
|
|
8056
8171
|
}
|
|
8057
8172
|
}
|
|
8058
8173
|
},
|
|
@@ -8284,6 +8399,13 @@
|
|
|
8284
8399
|
"requestOptions": {
|
|
8285
8400
|
"type": "RequestOptions",
|
|
8286
8401
|
"id": 3
|
|
8402
|
+
},
|
|
8403
|
+
"mutationKey": {
|
|
8404
|
+
"type": "Mutation",
|
|
8405
|
+
"id": 4,
|
|
8406
|
+
"options": {
|
|
8407
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
8408
|
+
}
|
|
8287
8409
|
}
|
|
8288
8410
|
}
|
|
8289
8411
|
},
|
|
@@ -8332,6 +8454,13 @@
|
|
|
8332
8454
|
"requestOptions": {
|
|
8333
8455
|
"type": "RequestOptions",
|
|
8334
8456
|
"id": 6
|
|
8457
|
+
},
|
|
8458
|
+
"precommitToken": {
|
|
8459
|
+
"type": "MultiplexedSessionPrecommitToken",
|
|
8460
|
+
"id": 9,
|
|
8461
|
+
"options": {
|
|
8462
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
8463
|
+
}
|
|
8335
8464
|
}
|
|
8336
8465
|
}
|
|
8337
8466
|
},
|
|
@@ -8417,6 +8546,13 @@
|
|
|
8417
8546
|
}
|
|
8418
8547
|
},
|
|
8419
8548
|
"CommitResponse": {
|
|
8549
|
+
"oneofs": {
|
|
8550
|
+
"MultiplexedSessionRetry": {
|
|
8551
|
+
"oneof": [
|
|
8552
|
+
"precommitToken"
|
|
8553
|
+
]
|
|
8554
|
+
}
|
|
8555
|
+
},
|
|
8420
8556
|
"fields": {
|
|
8421
8557
|
"commitTimestamp": {
|
|
8422
8558
|
"type": "google.protobuf.Timestamp",
|
|
@@ -8425,6 +8561,10 @@
|
|
|
8425
8561
|
"commitStats": {
|
|
8426
8562
|
"type": "CommitStats",
|
|
8427
8563
|
"id": 2
|
|
8564
|
+
},
|
|
8565
|
+
"precommitToken": {
|
|
8566
|
+
"type": "MultiplexedSessionPrecommitToken",
|
|
8567
|
+
"id": 4
|
|
8428
8568
|
}
|
|
8429
8569
|
},
|
|
8430
8570
|
"nested": {
|
|
@@ -8438,6 +8578,156 @@
|
|
|
8438
8578
|
}
|
|
8439
8579
|
}
|
|
8440
8580
|
},
|
|
8581
|
+
"TransactionOptions": {
|
|
8582
|
+
"oneofs": {
|
|
8583
|
+
"mode": {
|
|
8584
|
+
"oneof": [
|
|
8585
|
+
"readWrite",
|
|
8586
|
+
"partitionedDml",
|
|
8587
|
+
"readOnly"
|
|
8588
|
+
]
|
|
8589
|
+
}
|
|
8590
|
+
},
|
|
8591
|
+
"fields": {
|
|
8592
|
+
"readWrite": {
|
|
8593
|
+
"type": "ReadWrite",
|
|
8594
|
+
"id": 1
|
|
8595
|
+
},
|
|
8596
|
+
"partitionedDml": {
|
|
8597
|
+
"type": "PartitionedDml",
|
|
8598
|
+
"id": 3
|
|
8599
|
+
},
|
|
8600
|
+
"readOnly": {
|
|
8601
|
+
"type": "ReadOnly",
|
|
8602
|
+
"id": 2
|
|
8603
|
+
},
|
|
8604
|
+
"excludeTxnFromChangeStreams": {
|
|
8605
|
+
"type": "bool",
|
|
8606
|
+
"id": 5
|
|
8607
|
+
}
|
|
8608
|
+
},
|
|
8609
|
+
"nested": {
|
|
8610
|
+
"ReadWrite": {
|
|
8611
|
+
"fields": {
|
|
8612
|
+
"readLockMode": {
|
|
8613
|
+
"type": "ReadLockMode",
|
|
8614
|
+
"id": 1
|
|
8615
|
+
},
|
|
8616
|
+
"multiplexedSessionPreviousTransactionId": {
|
|
8617
|
+
"type": "bytes",
|
|
8618
|
+
"id": 2,
|
|
8619
|
+
"options": {
|
|
8620
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
8621
|
+
}
|
|
8622
|
+
}
|
|
8623
|
+
},
|
|
8624
|
+
"nested": {
|
|
8625
|
+
"ReadLockMode": {
|
|
8626
|
+
"values": {
|
|
8627
|
+
"READ_LOCK_MODE_UNSPECIFIED": 0,
|
|
8628
|
+
"PESSIMISTIC": 1,
|
|
8629
|
+
"OPTIMISTIC": 2
|
|
8630
|
+
}
|
|
8631
|
+
}
|
|
8632
|
+
}
|
|
8633
|
+
},
|
|
8634
|
+
"PartitionedDml": {
|
|
8635
|
+
"fields": {}
|
|
8636
|
+
},
|
|
8637
|
+
"ReadOnly": {
|
|
8638
|
+
"oneofs": {
|
|
8639
|
+
"timestampBound": {
|
|
8640
|
+
"oneof": [
|
|
8641
|
+
"strong",
|
|
8642
|
+
"minReadTimestamp",
|
|
8643
|
+
"maxStaleness",
|
|
8644
|
+
"readTimestamp",
|
|
8645
|
+
"exactStaleness"
|
|
8646
|
+
]
|
|
8647
|
+
}
|
|
8648
|
+
},
|
|
8649
|
+
"fields": {
|
|
8650
|
+
"strong": {
|
|
8651
|
+
"type": "bool",
|
|
8652
|
+
"id": 1
|
|
8653
|
+
},
|
|
8654
|
+
"minReadTimestamp": {
|
|
8655
|
+
"type": "google.protobuf.Timestamp",
|
|
8656
|
+
"id": 2
|
|
8657
|
+
},
|
|
8658
|
+
"maxStaleness": {
|
|
8659
|
+
"type": "google.protobuf.Duration",
|
|
8660
|
+
"id": 3
|
|
8661
|
+
},
|
|
8662
|
+
"readTimestamp": {
|
|
8663
|
+
"type": "google.protobuf.Timestamp",
|
|
8664
|
+
"id": 4
|
|
8665
|
+
},
|
|
8666
|
+
"exactStaleness": {
|
|
8667
|
+
"type": "google.protobuf.Duration",
|
|
8668
|
+
"id": 5
|
|
8669
|
+
},
|
|
8670
|
+
"returnReadTimestamp": {
|
|
8671
|
+
"type": "bool",
|
|
8672
|
+
"id": 6
|
|
8673
|
+
}
|
|
8674
|
+
}
|
|
8675
|
+
}
|
|
8676
|
+
}
|
|
8677
|
+
},
|
|
8678
|
+
"Transaction": {
|
|
8679
|
+
"fields": {
|
|
8680
|
+
"id": {
|
|
8681
|
+
"type": "bytes",
|
|
8682
|
+
"id": 1
|
|
8683
|
+
},
|
|
8684
|
+
"readTimestamp": {
|
|
8685
|
+
"type": "google.protobuf.Timestamp",
|
|
8686
|
+
"id": 2
|
|
8687
|
+
},
|
|
8688
|
+
"precommitToken": {
|
|
8689
|
+
"type": "MultiplexedSessionPrecommitToken",
|
|
8690
|
+
"id": 3
|
|
8691
|
+
}
|
|
8692
|
+
}
|
|
8693
|
+
},
|
|
8694
|
+
"TransactionSelector": {
|
|
8695
|
+
"oneofs": {
|
|
8696
|
+
"selector": {
|
|
8697
|
+
"oneof": [
|
|
8698
|
+
"singleUse",
|
|
8699
|
+
"id",
|
|
8700
|
+
"begin"
|
|
8701
|
+
]
|
|
8702
|
+
}
|
|
8703
|
+
},
|
|
8704
|
+
"fields": {
|
|
8705
|
+
"singleUse": {
|
|
8706
|
+
"type": "TransactionOptions",
|
|
8707
|
+
"id": 1
|
|
8708
|
+
},
|
|
8709
|
+
"id": {
|
|
8710
|
+
"type": "bytes",
|
|
8711
|
+
"id": 2
|
|
8712
|
+
},
|
|
8713
|
+
"begin": {
|
|
8714
|
+
"type": "TransactionOptions",
|
|
8715
|
+
"id": 3
|
|
8716
|
+
}
|
|
8717
|
+
}
|
|
8718
|
+
},
|
|
8719
|
+
"MultiplexedSessionPrecommitToken": {
|
|
8720
|
+
"fields": {
|
|
8721
|
+
"precommitToken": {
|
|
8722
|
+
"type": "bytes",
|
|
8723
|
+
"id": 1
|
|
8724
|
+
},
|
|
8725
|
+
"seqNum": {
|
|
8726
|
+
"type": "int32",
|
|
8727
|
+
"id": 2
|
|
8728
|
+
}
|
|
8729
|
+
}
|
|
8730
|
+
},
|
|
8441
8731
|
"KeyRange": {
|
|
8442
8732
|
"oneofs": {
|
|
8443
8733
|
"startKeyType": {
|
|
@@ -8580,6 +8870,13 @@
|
|
|
8580
8870
|
"stats": {
|
|
8581
8871
|
"type": "ResultSetStats",
|
|
8582
8872
|
"id": 3
|
|
8873
|
+
},
|
|
8874
|
+
"precommitToken": {
|
|
8875
|
+
"type": "MultiplexedSessionPrecommitToken",
|
|
8876
|
+
"id": 5,
|
|
8877
|
+
"options": {
|
|
8878
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
8879
|
+
}
|
|
8583
8880
|
}
|
|
8584
8881
|
}
|
|
8585
8882
|
},
|
|
@@ -8605,6 +8902,13 @@
|
|
|
8605
8902
|
"stats": {
|
|
8606
8903
|
"type": "ResultSetStats",
|
|
8607
8904
|
"id": 5
|
|
8905
|
+
},
|
|
8906
|
+
"precommitToken": {
|
|
8907
|
+
"type": "MultiplexedSessionPrecommitToken",
|
|
8908
|
+
"id": 8,
|
|
8909
|
+
"options": {
|
|
8910
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
8911
|
+
}
|
|
8608
8912
|
}
|
|
8609
8913
|
}
|
|
8610
8914
|
},
|
|
@@ -8732,133 +9036,6 @@
|
|
|
8732
9036
|
}
|
|
8733
9037
|
}
|
|
8734
9038
|
},
|
|
8735
|
-
"TransactionOptions": {
|
|
8736
|
-
"oneofs": {
|
|
8737
|
-
"mode": {
|
|
8738
|
-
"oneof": [
|
|
8739
|
-
"readWrite",
|
|
8740
|
-
"partitionedDml",
|
|
8741
|
-
"readOnly"
|
|
8742
|
-
]
|
|
8743
|
-
}
|
|
8744
|
-
},
|
|
8745
|
-
"fields": {
|
|
8746
|
-
"readWrite": {
|
|
8747
|
-
"type": "ReadWrite",
|
|
8748
|
-
"id": 1
|
|
8749
|
-
},
|
|
8750
|
-
"partitionedDml": {
|
|
8751
|
-
"type": "PartitionedDml",
|
|
8752
|
-
"id": 3
|
|
8753
|
-
},
|
|
8754
|
-
"readOnly": {
|
|
8755
|
-
"type": "ReadOnly",
|
|
8756
|
-
"id": 2
|
|
8757
|
-
},
|
|
8758
|
-
"excludeTxnFromChangeStreams": {
|
|
8759
|
-
"type": "bool",
|
|
8760
|
-
"id": 5
|
|
8761
|
-
}
|
|
8762
|
-
},
|
|
8763
|
-
"nested": {
|
|
8764
|
-
"ReadWrite": {
|
|
8765
|
-
"fields": {
|
|
8766
|
-
"readLockMode": {
|
|
8767
|
-
"type": "ReadLockMode",
|
|
8768
|
-
"id": 1
|
|
8769
|
-
}
|
|
8770
|
-
},
|
|
8771
|
-
"nested": {
|
|
8772
|
-
"ReadLockMode": {
|
|
8773
|
-
"values": {
|
|
8774
|
-
"READ_LOCK_MODE_UNSPECIFIED": 0,
|
|
8775
|
-
"PESSIMISTIC": 1,
|
|
8776
|
-
"OPTIMISTIC": 2
|
|
8777
|
-
}
|
|
8778
|
-
}
|
|
8779
|
-
}
|
|
8780
|
-
},
|
|
8781
|
-
"PartitionedDml": {
|
|
8782
|
-
"fields": {}
|
|
8783
|
-
},
|
|
8784
|
-
"ReadOnly": {
|
|
8785
|
-
"oneofs": {
|
|
8786
|
-
"timestampBound": {
|
|
8787
|
-
"oneof": [
|
|
8788
|
-
"strong",
|
|
8789
|
-
"minReadTimestamp",
|
|
8790
|
-
"maxStaleness",
|
|
8791
|
-
"readTimestamp",
|
|
8792
|
-
"exactStaleness"
|
|
8793
|
-
]
|
|
8794
|
-
}
|
|
8795
|
-
},
|
|
8796
|
-
"fields": {
|
|
8797
|
-
"strong": {
|
|
8798
|
-
"type": "bool",
|
|
8799
|
-
"id": 1
|
|
8800
|
-
},
|
|
8801
|
-
"minReadTimestamp": {
|
|
8802
|
-
"type": "google.protobuf.Timestamp",
|
|
8803
|
-
"id": 2
|
|
8804
|
-
},
|
|
8805
|
-
"maxStaleness": {
|
|
8806
|
-
"type": "google.protobuf.Duration",
|
|
8807
|
-
"id": 3
|
|
8808
|
-
},
|
|
8809
|
-
"readTimestamp": {
|
|
8810
|
-
"type": "google.protobuf.Timestamp",
|
|
8811
|
-
"id": 4
|
|
8812
|
-
},
|
|
8813
|
-
"exactStaleness": {
|
|
8814
|
-
"type": "google.protobuf.Duration",
|
|
8815
|
-
"id": 5
|
|
8816
|
-
},
|
|
8817
|
-
"returnReadTimestamp": {
|
|
8818
|
-
"type": "bool",
|
|
8819
|
-
"id": 6
|
|
8820
|
-
}
|
|
8821
|
-
}
|
|
8822
|
-
}
|
|
8823
|
-
}
|
|
8824
|
-
},
|
|
8825
|
-
"Transaction": {
|
|
8826
|
-
"fields": {
|
|
8827
|
-
"id": {
|
|
8828
|
-
"type": "bytes",
|
|
8829
|
-
"id": 1
|
|
8830
|
-
},
|
|
8831
|
-
"readTimestamp": {
|
|
8832
|
-
"type": "google.protobuf.Timestamp",
|
|
8833
|
-
"id": 2
|
|
8834
|
-
}
|
|
8835
|
-
}
|
|
8836
|
-
},
|
|
8837
|
-
"TransactionSelector": {
|
|
8838
|
-
"oneofs": {
|
|
8839
|
-
"selector": {
|
|
8840
|
-
"oneof": [
|
|
8841
|
-
"singleUse",
|
|
8842
|
-
"id",
|
|
8843
|
-
"begin"
|
|
8844
|
-
]
|
|
8845
|
-
}
|
|
8846
|
-
},
|
|
8847
|
-
"fields": {
|
|
8848
|
-
"singleUse": {
|
|
8849
|
-
"type": "TransactionOptions",
|
|
8850
|
-
"id": 1
|
|
8851
|
-
},
|
|
8852
|
-
"id": {
|
|
8853
|
-
"type": "bytes",
|
|
8854
|
-
"id": 2
|
|
8855
|
-
},
|
|
8856
|
-
"begin": {
|
|
8857
|
-
"type": "TransactionOptions",
|
|
8858
|
-
"id": 3
|
|
8859
|
-
}
|
|
8860
|
-
}
|
|
8861
|
-
},
|
|
8862
9039
|
"Type": {
|
|
8863
9040
|
"fields": {
|
|
8864
9041
|
"code": {
|
|
@@ -8925,7 +9102,8 @@
|
|
|
8925
9102
|
"NUMERIC": 10,
|
|
8926
9103
|
"JSON": 11,
|
|
8927
9104
|
"PROTO": 13,
|
|
8928
|
-
"ENUM": 14
|
|
9105
|
+
"ENUM": 14,
|
|
9106
|
+
"INTERVAL": 16
|
|
8929
9107
|
}
|
|
8930
9108
|
},
|
|
8931
9109
|
"TypeAnnotationCode": {
|
package/build/src/database.d.ts
CHANGED
package/build/src/database.js
CHANGED
|
@@ -330,6 +330,9 @@ class Database extends common.GrpcServiceObject {
|
|
|
330
330
|
if (options.labels) {
|
|
331
331
|
reqOpts.session.labels = options.labels;
|
|
332
332
|
}
|
|
333
|
+
if (options.multiplexed) {
|
|
334
|
+
reqOpts.session.multiplexed = options.multiplexed;
|
|
335
|
+
}
|
|
333
336
|
reqOpts.session.creatorRole =
|
|
334
337
|
options.databaseRole || this.databaseRole || null;
|
|
335
338
|
const headers = this.resourceHeader_;
|
package/build/src/instrument.js
CHANGED
|
@@ -527,6 +527,13 @@ export declare class SpannerClient {
|
|
|
527
527
|
* request_options struct will not do anything. To set the priority for a
|
|
528
528
|
* transaction, set it on the reads and writes that are part of this
|
|
529
529
|
* transaction instead.
|
|
530
|
+
* @param {google.spanner.v1.Mutation} [request.mutationKey]
|
|
531
|
+
* Optional. Required for read-write transactions on a multiplexed session
|
|
532
|
+
* that commit mutations but do not perform any reads or queries. Clients
|
|
533
|
+
* should randomly select one of the mutations from the mutation set and send
|
|
534
|
+
* it as a part of this request.
|
|
535
|
+
* This feature is not yet supported and will result in an UNIMPLEMENTED
|
|
536
|
+
* error.
|
|
530
537
|
* @param {object} [options]
|
|
531
538
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
532
539
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -589,6 +596,13 @@ export declare class SpannerClient {
|
|
|
589
596
|
* and 500 ms.
|
|
590
597
|
* @param {google.spanner.v1.RequestOptions} request.requestOptions
|
|
591
598
|
* Common options for this request.
|
|
599
|
+
* @param {google.spanner.v1.MultiplexedSessionPrecommitToken} [request.precommitToken]
|
|
600
|
+
* Optional. If the read-write transaction was executed on a multiplexed
|
|
601
|
+
* session, the precommit token with the highest sequence number received in
|
|
602
|
+
* this transaction attempt, should be included here. Failing to do so will
|
|
603
|
+
* result in a FailedPrecondition error.
|
|
604
|
+
* This feature is not yet supported and will result in an UNIMPLEMENTED
|
|
605
|
+
* error.
|
|
592
606
|
* @param {object} [options]
|
|
593
607
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
594
608
|
* @returns {Promise} - The promise which resolves to an array.
|
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.16.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Google Inc.",
|
|
7
7
|
"engines": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"events-intercept": "^2.0.0",
|
|
72
72
|
"extend": "^3.0.2",
|
|
73
73
|
"google-auth-library": "^9.0.0",
|
|
74
|
-
"google-gax": "4.
|
|
74
|
+
"google-gax": "4.4.1",
|
|
75
75
|
"grpc-gcp": "^1.0.0",
|
|
76
76
|
"is": "^3.2.1",
|
|
77
77
|
"lodash.snakecase": "^4.1.1",
|