@google-cloud/spanner 7.17.0 → 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 +14 -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 -1060
- 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 -87
- package/build/src/instrument.js +0 -217
- 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,210 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 Google LLC
|
|
2
|
-
//
|
|
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
|
-
syntax = "proto3";
|
|
16
|
-
|
|
17
|
-
package google.spanner.v1;
|
|
18
|
-
|
|
19
|
-
import "google/api/field_behavior.proto";
|
|
20
|
-
|
|
21
|
-
option csharp_namespace = "Google.Cloud.Spanner.V1";
|
|
22
|
-
option go_package = "cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb";
|
|
23
|
-
option java_multiple_files = true;
|
|
24
|
-
option java_outer_classname = "TypeProto";
|
|
25
|
-
option java_package = "com.google.spanner.v1";
|
|
26
|
-
option php_namespace = "Google\\Cloud\\Spanner\\V1";
|
|
27
|
-
option ruby_package = "Google::Cloud::Spanner::V1";
|
|
28
|
-
|
|
29
|
-
// `Type` indicates the type of a Cloud Spanner value, as might be stored in a
|
|
30
|
-
// table cell or returned from an SQL query.
|
|
31
|
-
message Type {
|
|
32
|
-
// Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.
|
|
33
|
-
TypeCode code = 1 [(google.api.field_behavior) = REQUIRED];
|
|
34
|
-
|
|
35
|
-
// If [code][google.spanner.v1.Type.code] ==
|
|
36
|
-
// [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type` is the
|
|
37
|
-
// type of the array elements.
|
|
38
|
-
Type array_element_type = 2;
|
|
39
|
-
|
|
40
|
-
// If [code][google.spanner.v1.Type.code] ==
|
|
41
|
-
// [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type` provides
|
|
42
|
-
// type information for the struct's fields.
|
|
43
|
-
StructType struct_type = 3;
|
|
44
|
-
|
|
45
|
-
// The [TypeAnnotationCode][google.spanner.v1.TypeAnnotationCode] that
|
|
46
|
-
// disambiguates SQL type that Spanner will use to represent values of this
|
|
47
|
-
// type during query processing. This is necessary for some type codes because
|
|
48
|
-
// a single [TypeCode][google.spanner.v1.TypeCode] can be mapped to different
|
|
49
|
-
// SQL types depending on the SQL dialect.
|
|
50
|
-
// [type_annotation][google.spanner.v1.Type.type_annotation] typically is not
|
|
51
|
-
// needed to process the content of a value (it doesn't affect serialization)
|
|
52
|
-
// and clients can ignore it on the read path.
|
|
53
|
-
TypeAnnotationCode type_annotation = 4;
|
|
54
|
-
|
|
55
|
-
// If [code][google.spanner.v1.Type.code] ==
|
|
56
|
-
// [PROTO][google.spanner.v1.TypeCode.PROTO] or
|
|
57
|
-
// [code][google.spanner.v1.Type.code] ==
|
|
58
|
-
// [ENUM][google.spanner.v1.TypeCode.ENUM], then `proto_type_fqn` is the fully
|
|
59
|
-
// qualified name of the proto type representing the proto/enum definition.
|
|
60
|
-
string proto_type_fqn = 5;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// `StructType` defines the fields of a
|
|
64
|
-
// [STRUCT][google.spanner.v1.TypeCode.STRUCT] type.
|
|
65
|
-
message StructType {
|
|
66
|
-
// Message representing a single field of a struct.
|
|
67
|
-
message Field {
|
|
68
|
-
// The name of the field. For reads, this is the column name. For
|
|
69
|
-
// SQL queries, it is the column alias (e.g., `"Word"` in the
|
|
70
|
-
// query `"SELECT 'hello' AS Word"`), or the column name (e.g.,
|
|
71
|
-
// `"ColName"` in the query `"SELECT ColName FROM Table"`). Some
|
|
72
|
-
// columns might have an empty name (e.g., `"SELECT
|
|
73
|
-
// UPPER(ColName)"`). Note that a query result can contain
|
|
74
|
-
// multiple fields with the same name.
|
|
75
|
-
string name = 1;
|
|
76
|
-
|
|
77
|
-
// The type of the field.
|
|
78
|
-
Type type = 2;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// The list of fields that make up this struct. Order is
|
|
82
|
-
// significant, because values of this struct type are represented as
|
|
83
|
-
// lists, where the order of field values matches the order of
|
|
84
|
-
// fields in the [StructType][google.spanner.v1.StructType]. In turn, the
|
|
85
|
-
// order of fields matches the order of columns in a read request, or the
|
|
86
|
-
// order of fields in the `SELECT` clause of a query.
|
|
87
|
-
repeated Field fields = 1;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// `TypeCode` is used as part of [Type][google.spanner.v1.Type] to
|
|
91
|
-
// indicate the type of a Cloud Spanner value.
|
|
92
|
-
//
|
|
93
|
-
// Each legal value of a type can be encoded to or decoded from a JSON
|
|
94
|
-
// value, using the encodings described below. All Cloud Spanner values can
|
|
95
|
-
// be `null`, regardless of type; `null`s are always encoded as a JSON
|
|
96
|
-
// `null`.
|
|
97
|
-
enum TypeCode {
|
|
98
|
-
// Not specified.
|
|
99
|
-
TYPE_CODE_UNSPECIFIED = 0;
|
|
100
|
-
|
|
101
|
-
// Encoded as JSON `true` or `false`.
|
|
102
|
-
BOOL = 1;
|
|
103
|
-
|
|
104
|
-
// Encoded as `string`, in decimal format.
|
|
105
|
-
INT64 = 2;
|
|
106
|
-
|
|
107
|
-
// Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
|
|
108
|
-
// `"-Infinity"`.
|
|
109
|
-
FLOAT64 = 3;
|
|
110
|
-
|
|
111
|
-
// Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
|
|
112
|
-
// `"-Infinity"`.
|
|
113
|
-
FLOAT32 = 15;
|
|
114
|
-
|
|
115
|
-
// Encoded as `string` in RFC 3339 timestamp format. The time zone
|
|
116
|
-
// must be present, and must be `"Z"`.
|
|
117
|
-
//
|
|
118
|
-
// If the schema has the column option
|
|
119
|
-
// `allow_commit_timestamp=true`, the placeholder string
|
|
120
|
-
// `"spanner.commit_timestamp()"` can be used to instruct the system
|
|
121
|
-
// to insert the commit timestamp associated with the transaction
|
|
122
|
-
// commit.
|
|
123
|
-
TIMESTAMP = 4;
|
|
124
|
-
|
|
125
|
-
// Encoded as `string` in RFC 3339 date format.
|
|
126
|
-
DATE = 5;
|
|
127
|
-
|
|
128
|
-
// Encoded as `string`.
|
|
129
|
-
STRING = 6;
|
|
130
|
-
|
|
131
|
-
// Encoded as a base64-encoded `string`, as described in RFC 4648,
|
|
132
|
-
// section 4.
|
|
133
|
-
BYTES = 7;
|
|
134
|
-
|
|
135
|
-
// Encoded as `list`, where the list elements are represented
|
|
136
|
-
// according to
|
|
137
|
-
// [array_element_type][google.spanner.v1.Type.array_element_type].
|
|
138
|
-
ARRAY = 8;
|
|
139
|
-
|
|
140
|
-
// Encoded as `list`, where list element `i` is represented according
|
|
141
|
-
// to [struct_type.fields[i]][google.spanner.v1.StructType.fields].
|
|
142
|
-
STRUCT = 9;
|
|
143
|
-
|
|
144
|
-
// Encoded as `string`, in decimal format or scientific notation format.
|
|
145
|
-
// Decimal format:
|
|
146
|
-
// `[+-]Digits[.[Digits]]` or
|
|
147
|
-
// `[+-][Digits].Digits`
|
|
148
|
-
//
|
|
149
|
-
// Scientific notation:
|
|
150
|
-
// `[+-]Digits[.[Digits]][ExponentIndicator[+-]Digits]` or
|
|
151
|
-
// `[+-][Digits].Digits[ExponentIndicator[+-]Digits]`
|
|
152
|
-
// (ExponentIndicator is `"e"` or `"E"`)
|
|
153
|
-
NUMERIC = 10;
|
|
154
|
-
|
|
155
|
-
// Encoded as a JSON-formatted `string` as described in RFC 7159. The
|
|
156
|
-
// following rules are applied when parsing JSON input:
|
|
157
|
-
//
|
|
158
|
-
// - Whitespace characters are not preserved.
|
|
159
|
-
// - If a JSON object has duplicate keys, only the first key is preserved.
|
|
160
|
-
// - Members of a JSON object are not guaranteed to have their order
|
|
161
|
-
// preserved.
|
|
162
|
-
// - JSON array elements will have their order preserved.
|
|
163
|
-
JSON = 11;
|
|
164
|
-
|
|
165
|
-
// Encoded as a base64-encoded `string`, as described in RFC 4648,
|
|
166
|
-
// section 4.
|
|
167
|
-
PROTO = 13;
|
|
168
|
-
|
|
169
|
-
// Encoded as `string`, in decimal format.
|
|
170
|
-
ENUM = 14;
|
|
171
|
-
|
|
172
|
-
// Encoded as `string`, in `ISO8601` duration format -
|
|
173
|
-
// `P[n]Y[n]M[n]DT[n]H[n]M[n[.fraction]]S`
|
|
174
|
-
// where `n` is an integer.
|
|
175
|
-
// For example, `P1Y2M3DT4H5M6.5S` represents time duration of 1 year, 2
|
|
176
|
-
// months, 3 days, 4 hours, 5 minutes, and 6.5 seconds.
|
|
177
|
-
INTERVAL = 16;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// `TypeAnnotationCode` is used as a part of [Type][google.spanner.v1.Type] to
|
|
181
|
-
// disambiguate SQL types that should be used for a given Cloud Spanner value.
|
|
182
|
-
// Disambiguation is needed because the same Cloud Spanner type can be mapped to
|
|
183
|
-
// different SQL types depending on SQL dialect. TypeAnnotationCode doesn't
|
|
184
|
-
// affect the way value is serialized.
|
|
185
|
-
enum TypeAnnotationCode {
|
|
186
|
-
// Not specified.
|
|
187
|
-
TYPE_ANNOTATION_CODE_UNSPECIFIED = 0;
|
|
188
|
-
|
|
189
|
-
// PostgreSQL compatible NUMERIC type. This annotation needs to be applied to
|
|
190
|
-
// [Type][google.spanner.v1.Type] instances having
|
|
191
|
-
// [NUMERIC][google.spanner.v1.TypeCode.NUMERIC] type code to specify that
|
|
192
|
-
// values of this type should be treated as PostgreSQL NUMERIC values.
|
|
193
|
-
// Currently this annotation is always needed for
|
|
194
|
-
// [NUMERIC][google.spanner.v1.TypeCode.NUMERIC] when a client interacts with
|
|
195
|
-
// PostgreSQL-enabled Spanner databases.
|
|
196
|
-
PG_NUMERIC = 2;
|
|
197
|
-
|
|
198
|
-
// PostgreSQL compatible JSONB type. This annotation needs to be applied to
|
|
199
|
-
// [Type][google.spanner.v1.Type] instances having
|
|
200
|
-
// [JSON][google.spanner.v1.TypeCode.JSON] type code to specify that values of
|
|
201
|
-
// this type should be treated as PostgreSQL JSONB values. Currently this
|
|
202
|
-
// annotation is always needed for [JSON][google.spanner.v1.TypeCode.JSON]
|
|
203
|
-
// when a client interacts with PostgreSQL-enabled Spanner databases.
|
|
204
|
-
PG_JSONB = 3;
|
|
205
|
-
|
|
206
|
-
// PostgreSQL compatible OID type. This annotation can be used by a client
|
|
207
|
-
// interacting with PostgreSQL-enabled Spanner database to specify that a
|
|
208
|
-
// value should be treated using the semantics of the OID type.
|
|
209
|
-
PG_OID = 4;
|
|
210
|
-
}
|