google-cloud-spanner-v1 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80f73bcf0c62d9e0ac8b3180009f47be2bfdd94e4bb8257c5b1d0069fe8f9b77
4
- data.tar.gz: c820527330eba17eb8cb8cf57e6bd86316fd02173ef08e636afda74b8e583741
3
+ metadata.gz: 506e5f2c7f94609ad28e4a3d6d53a00ea9512e861999529e85cca4ab1d3a7fd1
4
+ data.tar.gz: c3998ce28c3c96271b0354c47cffd670ca43ac1193c33587a758da2593ba489a
5
5
  SHA512:
6
- metadata.gz: 40aadd7fb3c257b75747a38915e60549d4a3ab7088dc7464d6a5be497bc8d38eb6bb8b5f6d2a6c6dd9201478644b25cb30709caa71507efa3cb382879f989a29
7
- data.tar.gz: b4089e4023583b4d4cf99551b75056a1eb5c732c87e71506902a1355a4c4366c766aaa81c32500867075e1b128ffb02b701535ed825ad2017f3b9225688273fe
6
+ metadata.gz: e2e57a196955b402002d7a50965d08eb676360188d59e063b478635d2a972f458b7643f298414b135738b53fe1234307fefbb3cc091715437b81c6a68220fe93
7
+ data.tar.gz: 35c0bf23032ad50669c14e5035893d968d100e4e90639cf6ccd787a9647bace9513d8d6a44ec44a96b28adf4b4220ca29d1caad4f38e6f330d76b557f31282c1
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Spanner
23
23
  module V1
24
- VERSION = "0.12.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -16,6 +16,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  end
17
17
  end
18
18
  add_message "google.spanner.v1.TransactionOptions.ReadWrite" do
19
+ optional :read_lock_mode, :enum, 1, "google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode"
20
+ end
21
+ add_enum "google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode" do
22
+ value :READ_LOCK_MODE_UNSPECIFIED, 0
23
+ value :PESSIMISTIC, 1
24
+ value :OPTIMISTIC, 2
19
25
  end
20
26
  add_message "google.spanner.v1.TransactionOptions.PartitionedDml" do
21
27
  end
@@ -49,6 +55,7 @@ module Google
49
55
  module V1
50
56
  TransactionOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions").msgclass
51
57
  TransactionOptions::ReadWrite = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.ReadWrite").msgclass
58
+ TransactionOptions::ReadWrite::ReadLockMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode").enummodule
52
59
  TransactionOptions::PartitionedDml = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.PartitionedDml").msgclass
53
60
  TransactionOptions::ReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.ReadOnly").msgclass
54
61
  Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Transaction").msgclass
@@ -50,7 +50,8 @@ module Google
50
50
  #
51
51
  # Queries on change streams must be performed with the snapshot read-only
52
52
  # transaction mode, specifying a strong read. Please see
53
- # {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#strong TransactionOptions.ReadOnly.strong} for more details.
53
+ # {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#strong TransactionOptions.ReadOnly.strong}
54
+ # for more details.
54
55
  #
55
56
  # 3. Partitioned DML. This type of transaction is used to execute
56
57
  # a single Partitioned DML statement. Partitioned DML partitions
@@ -186,7 +187,8 @@ module Google
186
187
  # Queries on change streams (see below for more details) must also specify
187
188
  # the strong read timestamp bound.
188
189
  #
189
- # See {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#strong TransactionOptions.ReadOnly.strong}.
190
+ # See
191
+ # {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#strong TransactionOptions.ReadOnly.strong}.
190
192
  #
191
193
  # Exact staleness:
192
194
  #
@@ -207,7 +209,9 @@ module Google
207
209
  # equivalent boundedly stale concurrency modes. On the other hand,
208
210
  # boundedly stale reads usually return fresher results.
209
211
  #
210
- # See {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#read_timestamp TransactionOptions.ReadOnly.read_timestamp} and
212
+ # See
213
+ # {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#read_timestamp TransactionOptions.ReadOnly.read_timestamp}
214
+ # and
211
215
  # {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#exact_staleness TransactionOptions.ReadOnly.exact_staleness}.
212
216
  #
213
217
  # Bounded staleness:
@@ -237,7 +241,9 @@ module Google
237
241
  # which rows will be read, it can only be used with single-use
238
242
  # read-only transactions.
239
243
  #
240
- # See {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#max_staleness TransactionOptions.ReadOnly.max_staleness} and
244
+ # See
245
+ # {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#max_staleness TransactionOptions.ReadOnly.max_staleness}
246
+ # and
241
247
  # {::Google::Cloud::Spanner::V1::TransactionOptions::ReadOnly#min_read_timestamp TransactionOptions.ReadOnly.min_read_timestamp}.
242
248
  #
243
249
  # Old read timestamps and garbage collection:
@@ -366,9 +372,33 @@ module Google
366
372
 
367
373
  # Message type to initiate a read-write transaction. Currently this
368
374
  # transaction type has no options.
375
+ # @!attribute [rw] read_lock_mode
376
+ # @return [::Google::Cloud::Spanner::V1::TransactionOptions::ReadWrite::ReadLockMode]
377
+ # Read lock mode for the transaction.
369
378
  class ReadWrite
370
379
  include ::Google::Protobuf::MessageExts
371
380
  extend ::Google::Protobuf::MessageExts::ClassMethods
381
+
382
+ # `ReadLockMode` is used to set the read lock mode for read-write
383
+ # transactions.
384
+ module ReadLockMode
385
+ # Default value.
386
+ #
387
+ # If the value is not specified, the pessimistic read lock is used.
388
+ READ_LOCK_MODE_UNSPECIFIED = 0
389
+
390
+ # Pessimistic lock mode.
391
+ #
392
+ # Read locks are acquired immediately on read.
393
+ PESSIMISTIC = 1
394
+
395
+ # Optimistic lock mode.
396
+ #
397
+ # Locks for reads within the transaction are not acquired on read.
398
+ # Instead the locks are acquired on a commit to validate that
399
+ # read/queried data has not changed since the transaction started.
400
+ OPTIMISTIC = 2
401
+ end
372
402
  end
373
403
 
374
404
  # Message type to initiate a Partitioned DML transaction.
@@ -439,7 +469,8 @@ module Google
439
469
  # @!attribute [rw] return_read_timestamp
440
470
  # @return [::Boolean]
441
471
  # If true, the Cloud Spanner-selected read timestamp is included in
442
- # the {::Google::Cloud::Spanner::V1::Transaction Transaction} message that describes the transaction.
472
+ # the {::Google::Cloud::Spanner::V1::Transaction Transaction} message that describes
473
+ # the transaction.
443
474
  class ReadOnly
444
475
  include ::Google::Protobuf::MessageExts
445
476
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -474,7 +505,8 @@ module Google
474
505
  # {::Google::Cloud::Spanner::V1::Spanner::Client#read Read} or
475
506
  # {::Google::Cloud::Spanner::V1::Spanner::Client#execute_sql ExecuteSql} call runs.
476
507
  #
477
- # See {::Google::Cloud::Spanner::V1::TransactionOptions TransactionOptions} for more information about transactions.
508
+ # See {::Google::Cloud::Spanner::V1::TransactionOptions TransactionOptions} for more
509
+ # information about transactions.
478
510
  # @!attribute [rw] single_use
479
511
  # @return [::Google::Cloud::Spanner::V1::TransactionOptions]
480
512
  # Execute the read or SQL query in a temporary transaction.
@@ -487,7 +519,8 @@ module Google
487
519
  # @return [::Google::Cloud::Spanner::V1::TransactionOptions]
488
520
  # Begin a new transaction and execute this read or SQL query in
489
521
  # it. The transaction ID of the new transaction is returned in
490
- # {::Google::Cloud::Spanner::V1::ResultSetMetadata#transaction ResultSetMetadata.transaction}, which is a {::Google::Cloud::Spanner::V1::Transaction Transaction}.
522
+ # {::Google::Cloud::Spanner::V1::ResultSetMetadata#transaction ResultSetMetadata.transaction},
523
+ # which is a {::Google::Cloud::Spanner::V1::Transaction Transaction}.
491
524
  class TransactionSelector
492
525
  include ::Google::Protobuf::MessageExts
493
526
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.12.0
4
+ version: 0.13.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-10-18 00:00:00.000000000 Z
11
+ date: 2022-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common