@google-cloud/spanner 7.17.1 → 7.18.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 +7 -0
- package/package.json +1 -1
- package/build/protos/google/spanner/admin/database/v1/backup.proto +0 -757
- package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +0 -230
- package/build/protos/google/spanner/admin/database/v1/common.proto +0 -132
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +0 -1209
- package/build/protos/google/spanner/admin/instance/v1/common.proto +0 -63
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +0 -1983
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +0 -1520
- package/build/protos/google/spanner/v1/commit_response.proto +0 -59
- package/build/protos/google/spanner/v1/keys.proto +0 -163
- package/build/protos/google/spanner/v1/mutation.proto +0 -107
- package/build/protos/google/spanner/v1/query_plan.proto +0 -128
- package/build/protos/google/spanner/v1/result_set.proto +0 -237
- package/build/protos/google/spanner/v1/spanner.proto +0 -1389
- package/build/protos/google/spanner/v1/transaction.proto +0 -575
- package/build/protos/google/spanner/v1/type.proto +0 -210
- package/build/protos/protos.d.ts +0 -38999
- package/build/protos/protos.js +0 -99538
- package/build/protos/protos.json +0 -10182
- package/build/src/backup.d.ts +0 -349
- package/build/src/backup.js +0 -246
- package/build/src/batch-transaction.d.ts +0 -247
- package/build/src/batch-transaction.js +0 -384
- package/build/src/codec.d.ts +0 -362
- package/build/src/codec.js +0 -791
- package/build/src/common-grpc/service-object.d.ts +0 -80
- package/build/src/common-grpc/service-object.js +0 -101
- package/build/src/common-grpc/service.d.ts +0 -445
- package/build/src/common-grpc/service.js +0 -826
- package/build/src/common.d.ts +0 -66
- package/build/src/common.js +0 -54
- package/build/src/database.d.ts +0 -2104
- package/build/src/database.js +0 -1655
- package/build/src/extra_proto_list.json +0 -1
- package/build/src/helper.d.ts +0 -45
- package/build/src/helper.js +0 -71
- package/build/src/index.d.ts +0 -1195
- package/build/src/index.js +0 -1059
- package/build/src/instance-config.d.ts +0 -295
- package/build/src/instance-config.js +0 -216
- package/build/src/instance.d.ts +0 -833
- package/build/src/instance.js +0 -781
- package/build/src/instrument.d.ts +0 -85
- package/build/src/instrument.js +0 -212
- package/build/src/multiplexed-session.d.ts +0 -136
- package/build/src/multiplexed-session.js +0 -197
- package/build/src/partial-result-stream.d.ts +0 -253
- package/build/src/partial-result-stream.js +0 -400
- package/build/src/session-factory.d.ts +0 -101
- package/build/src/session-factory.js +0 -93
- package/build/src/session-pool.d.ts +0 -471
- package/build/src/session-pool.js +0 -754
- package/build/src/session.d.ts +0 -259
- package/build/src/session.js +0 -348
- package/build/src/spanner_grpc_config.json +0 -92
- package/build/src/table.d.ts +0 -831
- package/build/src/table.js +0 -277
- package/build/src/transaction-runner.d.ts +0 -185
- package/build/src/transaction-runner.js +0 -282
- package/build/src/transaction.d.ts +0 -1691
- package/build/src/transaction.js +0 -2004
- package/build/src/v1/database_admin_client.d.ts +0 -2301
- package/build/src/v1/database_admin_client.js +0 -2286
- package/build/src/v1/database_admin_client_config.json +0 -160
- package/build/src/v1/database_admin_proto_list.json +0 -6
- package/build/src/v1/gapic_metadata.json +0 -27
- package/build/src/v1/index.d.ts +0 -4
- package/build/src/v1/index.js +0 -29
- package/build/src/v1/instance_admin_client.d.ts +0 -1982
- package/build/src/v1/instance_admin_client.js +0 -1766
- package/build/src/v1/instance_admin_client_config.json +0 -129
- package/build/src/v1/instance_admin_proto_list.json +0 -4
- package/build/src/v1/spanner_client.d.ts +0 -1250
- package/build/src/v1/spanner_client.js +0 -1086
- package/build/src/v1/spanner_client_config.json +0 -119
- package/build/src/v1/spanner_executor_proxy_client.d.ts +0 -418
- package/build/src/v1/spanner_executor_proxy_client.js +0 -706
- package/build/src/v1/spanner_executor_proxy_client_config.json +0 -30
- package/build/src/v1/spanner_executor_proxy_proto_list.json +0 -14
- package/build/src/v1/spanner_proto_list.json +0 -10
|
@@ -1 +0,0 @@
|
|
|
1
|
-
["../node_modules/google-gax/build/protos/google/rpc/error_details.proto"]
|
package/build/src/helper.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2024 Google LLC
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
import { grpc } from 'google-gax';
|
|
16
|
-
/**
|
|
17
|
-
* Checks whether the given error is a 'Database not found' error.
|
|
18
|
-
* @param {Error} error The error to check.
|
|
19
|
-
* @return {boolean} True if the error is a 'Database not found' error, and otherwise false.
|
|
20
|
-
*/
|
|
21
|
-
export declare function isDatabaseNotFoundError(error: grpc.ServiceError | undefined): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Checks whether the given error is an 'Instance not found' error.
|
|
24
|
-
* @param {Error} error The error to check.
|
|
25
|
-
* @return {boolean} True if the error is an 'Instance not found' error, and otherwise false.
|
|
26
|
-
*/
|
|
27
|
-
export declare function isInstanceNotFoundError(error: grpc.ServiceError | undefined): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Checks whether the given error is a 'Could not load the default credentials' error.
|
|
30
|
-
* @param {Error} error The error to check.
|
|
31
|
-
* @return {boolean} True if the error is a 'Could not load the default credentials' error, and otherwise false.
|
|
32
|
-
*/
|
|
33
|
-
export declare function isDefaultCredentialsNotSetError(error: grpc.ServiceError | undefined): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Checks whether the given error is an 'Unable to detect a Project Id in the current environment' error.
|
|
36
|
-
* @param {Error} error The error to check.
|
|
37
|
-
* @return {boolean} True if the error is an 'Unable to detect a Project Id in the current environment' error, and otherwise false.
|
|
38
|
-
*/
|
|
39
|
-
export declare function isProjectIdNotSetInEnvironmentError(error: grpc.ServiceError | undefined): boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Checks whether the given error is a 'Create session permission' error.
|
|
42
|
-
* @param {Error} error The error to check.
|
|
43
|
-
* @return {boolean} True if the error is a 'Create session permission' error, and otherwise false.
|
|
44
|
-
*/
|
|
45
|
-
export declare function isCreateSessionPermissionError(error: grpc.ServiceError | undefined): boolean;
|
package/build/src/helper.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright 2024 Google LLC
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.isDatabaseNotFoundError = isDatabaseNotFoundError;
|
|
18
|
-
exports.isInstanceNotFoundError = isInstanceNotFoundError;
|
|
19
|
-
exports.isDefaultCredentialsNotSetError = isDefaultCredentialsNotSetError;
|
|
20
|
-
exports.isProjectIdNotSetInEnvironmentError = isProjectIdNotSetInEnvironmentError;
|
|
21
|
-
exports.isCreateSessionPermissionError = isCreateSessionPermissionError;
|
|
22
|
-
const google_gax_1 = require("google-gax");
|
|
23
|
-
/**
|
|
24
|
-
* Checks whether the given error is a 'Database not found' error.
|
|
25
|
-
* @param {Error} error The error to check.
|
|
26
|
-
* @return {boolean} True if the error is a 'Database not found' error, and otherwise false.
|
|
27
|
-
*/
|
|
28
|
-
function isDatabaseNotFoundError(error) {
|
|
29
|
-
return (error !== undefined &&
|
|
30
|
-
error.code === google_gax_1.grpc.status.NOT_FOUND &&
|
|
31
|
-
error.message.includes('Database not found'));
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Checks whether the given error is an 'Instance not found' error.
|
|
35
|
-
* @param {Error} error The error to check.
|
|
36
|
-
* @return {boolean} True if the error is an 'Instance not found' error, and otherwise false.
|
|
37
|
-
*/
|
|
38
|
-
function isInstanceNotFoundError(error) {
|
|
39
|
-
return (error !== undefined &&
|
|
40
|
-
error.code === google_gax_1.grpc.status.NOT_FOUND &&
|
|
41
|
-
error.message.includes('Instance not found'));
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Checks whether the given error is a 'Could not load the default credentials' error.
|
|
45
|
-
* @param {Error} error The error to check.
|
|
46
|
-
* @return {boolean} True if the error is a 'Could not load the default credentials' error, and otherwise false.
|
|
47
|
-
*/
|
|
48
|
-
function isDefaultCredentialsNotSetError(error) {
|
|
49
|
-
return (error !== undefined &&
|
|
50
|
-
error.message.includes('Could not load the default credentials'));
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Checks whether the given error is an 'Unable to detect a Project Id in the current environment' error.
|
|
54
|
-
* @param {Error} error The error to check.
|
|
55
|
-
* @return {boolean} True if the error is an 'Unable to detect a Project Id in the current environment' error, and otherwise false.
|
|
56
|
-
*/
|
|
57
|
-
function isProjectIdNotSetInEnvironmentError(error) {
|
|
58
|
-
return (error !== undefined &&
|
|
59
|
-
error.message.includes('Unable to detect a Project Id in the current environment'));
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Checks whether the given error is a 'Create session permission' error.
|
|
63
|
-
* @param {Error} error The error to check.
|
|
64
|
-
* @return {boolean} True if the error is a 'Create session permission' error, and otherwise false.
|
|
65
|
-
*/
|
|
66
|
-
function isCreateSessionPermissionError(error) {
|
|
67
|
-
return (error !== undefined &&
|
|
68
|
-
error.code === google_gax_1.grpc.status.PERMISSION_DENIED &&
|
|
69
|
-
error.message.includes('spanner.sessions.create'));
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=helper.js.map
|