google-cloud-spanner-v1 0.10.0 → 0.12.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/spanner/v1/version.rb +1 -1
- data/lib/google/spanner/v1/result_set_pb.rb +1 -0
- data/lib/google/spanner/v1/type_pb.rb +1 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/spanner/v1/result_set.rb +12 -0
- data/proto_docs/google/spanner/v1/type.rb +8 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80f73bcf0c62d9e0ac8b3180009f47be2bfdd94e4bb8257c5b1d0069fe8f9b77
|
4
|
+
data.tar.gz: c820527330eba17eb8cb8cf57e6bd86316fd02173ef08e636afda74b8e583741
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40aadd7fb3c257b75747a38915e60549d4a3ab7088dc7464d6a5be497bc8d38eb6bb8b5f6d2a6c6dd9201478644b25cb30709caa71507efa3cb382879f989a29
|
7
|
+
data.tar.gz: b4089e4023583b4d4cf99551b75056a1eb5c732c87e71506902a1355a4c4366c766aaa81c32500867075e1b128ffb02b701535ed825ad2017f3b9225688273fe
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
@@ -25,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
25
25
|
add_message "google.spanner.v1.ResultSetMetadata" do
|
26
26
|
optional :row_type, :message, 1, "google.spanner.v1.StructType"
|
27
27
|
optional :transaction, :message, 2, "google.spanner.v1.Transaction"
|
28
|
+
optional :undeclared_parameters, :message, 3, "google.spanner.v1.StructType"
|
28
29
|
end
|
29
30
|
add_message "google.spanner.v1.ResultSetStats" do
|
30
31
|
optional :query_plan, :message, 1, "google.spanner.v1.QueryPlan"
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -171,6 +171,18 @@ module Google
|
|
171
171
|
# @return [::Google::Cloud::Spanner::V1::Transaction]
|
172
172
|
# If the read or SQL query began a transaction as a side-effect, the
|
173
173
|
# information about the new transaction is yielded here.
|
174
|
+
# @!attribute [rw] undeclared_parameters
|
175
|
+
# @return [::Google::Cloud::Spanner::V1::StructType]
|
176
|
+
# A SQL query can be parameterized. In PLAN mode, these parameters can be
|
177
|
+
# undeclared. This indicates the field names and types for those undeclared
|
178
|
+
# parameters in the SQL query. For example, a SQL query like `"SELECT * FROM
|
179
|
+
# Users where UserId = @userId and UserName = @userName "` could return a
|
180
|
+
# `undeclared_parameters` value like:
|
181
|
+
#
|
182
|
+
# "fields": [
|
183
|
+
# { "name": "UserId", "type": { "code": "INT64" } },
|
184
|
+
# { "name": "UserName", "type": { "code": "STRING" } },
|
185
|
+
# ]
|
174
186
|
class ResultSetMetadata
|
175
187
|
include ::Google::Protobuf::MessageExts
|
176
188
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -167,6 +167,14 @@ module Google
|
|
167
167
|
# {::Google::Cloud::Spanner::V1::TypeCode::NUMERIC NUMERIC} when a client interacts with PostgreSQL-enabled
|
168
168
|
# Spanner databases.
|
169
169
|
PG_NUMERIC = 2
|
170
|
+
|
171
|
+
# PostgreSQL compatible JSONB type. This annotation needs to be applied to
|
172
|
+
# {::Google::Cloud::Spanner::V1::Type Type} instances having {::Google::Cloud::Spanner::V1::TypeCode::JSON JSON}
|
173
|
+
# type code to specify that values of this type should be treated as
|
174
|
+
# PostgreSQL JSONB values. Currently this annotation is always needed for
|
175
|
+
# {::Google::Cloud::Spanner::V1::TypeCode::JSON JSON} when a client interacts with PostgreSQL-enabled
|
176
|
+
# Spanner databases.
|
177
|
+
PG_JSONB = 3
|
170
178
|
end
|
171
179
|
end
|
172
180
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-spanner-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|