@google-cloud/spanner 7.14.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 +36 -0
- package/README.md +14 -2
- 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 +1908 -1452
- package/build/protos/protos.js +5095 -3724
- package/build/protos/protos.json +310 -129
- package/build/src/batch-transaction.d.ts +1 -0
- package/build/src/batch-transaction.js +90 -50
- package/build/src/database.d.ts +6 -2
- package/build/src/database.js +433 -235
- package/build/src/index.d.ts +5 -0
- package/build/src/index.js +4 -0
- package/build/src/instance.d.ts +2 -0
- package/build/src/instance.js +6 -1
- package/build/src/instrument.d.ts +84 -0
- package/build/src/instrument.js +212 -0
- package/build/src/session-pool.d.ts +2 -0
- package/build/src/session-pool.js +61 -23
- package/build/src/session.js +1 -7
- package/build/src/table.d.ts +3 -0
- package/build/src/table.js +34 -14
- package/build/src/transaction.d.ts +3 -0
- package/build/src/transaction.js +411 -194
- package/build/src/v1/spanner_client.d.ts +14 -0
- package/package.json +12 -3
|
@@ -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": {
|
|
@@ -33,8 +33,9 @@
|
|
|
33
33
|
"samples-test-with-archived": "cd samples/ && npm link ../ && npm test-with-archived && cd ../",
|
|
34
34
|
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
|
|
35
35
|
"system-test": "mocha build/system-test --timeout 1600000",
|
|
36
|
+
"observability-test": "mocha build/observability-test --timeout 1600000",
|
|
36
37
|
"cleanup": "mocha scripts/cleanup.js --timeout 30000",
|
|
37
|
-
"test": "mocha build/test build/test/common",
|
|
38
|
+
"test": "mocha build/test build/test/common build/observability-test",
|
|
38
39
|
"ycsb": "node ./benchmark/ycsb.js run -P ./benchmark/workloada -p table=usertable -p cloudspanner.instance=ycsb-instance -p operationcount=100 -p cloudspanner.database=ycsb",
|
|
39
40
|
"fix": "gts fix",
|
|
40
41
|
"clean": "gts clean",
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
"prepare": "npm run compile-protos && npm run compile",
|
|
43
44
|
"pretest": "npm run compile",
|
|
44
45
|
"presystem-test": "npm run compile",
|
|
46
|
+
"preobservability-test": "npm run compile",
|
|
45
47
|
"proto": "compileProtos src",
|
|
46
48
|
"docs-test": "linkinator docs",
|
|
47
49
|
"predocs-test": "npm run docs",
|
|
@@ -57,6 +59,9 @@
|
|
|
57
59
|
"@google-cloud/projectify": "^4.0.0",
|
|
58
60
|
"@google-cloud/promisify": "^4.0.0",
|
|
59
61
|
"@grpc/proto-loader": "^0.7.0",
|
|
62
|
+
"@opentelemetry/api": "^1.9.0",
|
|
63
|
+
"@opentelemetry/context-async-hooks": "^1.26.0",
|
|
64
|
+
"@opentelemetry/semantic-conventions": "^1.25.1",
|
|
60
65
|
"@types/big.js": "^6.0.0",
|
|
61
66
|
"@types/stack-trace": "0.0.33",
|
|
62
67
|
"arrify": "^2.0.0",
|
|
@@ -66,7 +71,7 @@
|
|
|
66
71
|
"events-intercept": "^2.0.0",
|
|
67
72
|
"extend": "^3.0.2",
|
|
68
73
|
"google-auth-library": "^9.0.0",
|
|
69
|
-
"google-gax": "4.
|
|
74
|
+
"google-gax": "4.4.1",
|
|
70
75
|
"grpc-gcp": "^1.0.0",
|
|
71
76
|
"is": "^3.2.1",
|
|
72
77
|
"lodash.snakecase": "^4.1.1",
|
|
@@ -81,6 +86,8 @@
|
|
|
81
86
|
"through2": "^4.0.0"
|
|
82
87
|
},
|
|
83
88
|
"devDependencies": {
|
|
89
|
+
"@opentelemetry/sdk-trace-base": "^1.26.0",
|
|
90
|
+
"@opentelemetry/sdk-trace-node": "^1.26.0",
|
|
84
91
|
"@types/concat-stream": "^2.0.0",
|
|
85
92
|
"@types/extend": "^3.0.0",
|
|
86
93
|
"@types/is": "0.0.25",
|
|
@@ -110,7 +117,9 @@
|
|
|
110
117
|
"mocha": "^9.2.2",
|
|
111
118
|
"mv": "^2.1.1",
|
|
112
119
|
"ncp": "^2.0.0",
|
|
120
|
+
"nise": "6.0.0",
|
|
113
121
|
"p-limit": "^3.0.1",
|
|
122
|
+
"path-to-regexp": "6.2.2",
|
|
114
123
|
"proxyquire": "^2.0.1",
|
|
115
124
|
"sinon": "^18.0.0",
|
|
116
125
|
"stats-lite": "^2.1.1",
|