statelydb 0.24.0 → 0.25.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79874a278fbc1274780bc6cfdc886038af5b30e0bfa5d78cf19a7154af8e7f7c
4
- data.tar.gz: 94f6af47f7fe70029dcfde2bb443c3f581353455c5ac1ee8d4685b11c530c7de
3
+ metadata.gz: b04c96f6fe3528b4be74067b74cb9a7f2305e6ff51a32d4a906b2a8ae5689c4e
4
+ data.tar.gz: 186c527fbaa091d2e5dfad88ffac574ced06e3ec9f5f0934cf5c3a39f599af21
5
5
  SHA512:
6
- metadata.gz: 9af4e46b124af55084a21277eccf5e275a1cb8e2959ad9b3c13c7ef9457297e764a6b43586918c41d1dda14a0e28642033a8c3af69755aa262910f680141a1e7
7
- data.tar.gz: fce5c1dadfec2499b76bcb1b42940b6ce031784a43904698860ce1fda905e5a0b13b5fb2d25d7c901a1c7555858f268cef52ea0d542b781197e0cd402fd228c9
6
+ metadata.gz: 2a537222b409e8a036b62622b391a7bdcb785cbe701094750e563dedd9997d692c0ec5f384f0b1fe220f194ec36d03faab3e64e3cae860439cc0e427fd572f7c
7
+ data.tar.gz: 29703559309292112f1335d28d53115677151125d227924faa11fef07d19a989a2772d07dc948fe3a8b044ed1d8e32238dace5fdc08df370b9046e8a91b7f3c3
data/lib/statelydb.rb CHANGED
@@ -107,6 +107,7 @@ module StatelyDB
107
107
  key_paths = Array(key_paths).flatten
108
108
  req = Stately::Db::GetRequest.new(
109
109
  store_id: @store_id,
110
+ schema_id: @schema::SCHEMA_ID,
110
111
  schema_version_id: @schema::SCHEMA_VERSION_ID,
111
112
  gets:
112
113
  key_paths.map { |key_path| Stately::Db::GetItem.new(key_path: String(key_path)) },
@@ -142,6 +143,7 @@ module StatelyDB
142
143
  sort_property:,
143
144
  sort_direction:,
144
145
  allow_stale: @allow_stale,
146
+ schema_id: @schema::SCHEMA_ID,
145
147
  schema_version_id: @schema::SCHEMA_VERSION_ID
146
148
  )
147
149
  resp = @stub.begin_list(req)
@@ -159,6 +161,7 @@ module StatelyDB
159
161
  def continue_list(token)
160
162
  req = Stately::Db::ContinueListRequest.new(
161
163
  token_data: token.token_data,
164
+ schema_id: @schema::SCHEMA_ID,
162
165
  schema_version_id: @schema::SCHEMA_VERSION_ID
163
166
  )
164
167
  resp = @stub.continue_list(req)
@@ -202,6 +205,7 @@ module StatelyDB
202
205
  filter_condition: item_types.map do |item_type|
203
206
  Stately::Db::FilterCondition.new(item_type: item_type.respond_to?(:name) ? item_type.name.split("::").last : item_type)
204
207
  end,
208
+ schema_id: @schema::SCHEMA_ID,
205
209
  schema_version_id: @schema::SCHEMA_VERSION_ID
206
210
  )
207
211
  resp = @stub.begin_scan(req)
@@ -222,6 +226,7 @@ module StatelyDB
222
226
  def continue_scan(token)
223
227
  req = Stately::Db::ContinueScanRequest.new(
224
228
  token_data: token.token_data,
229
+ schema_id: @schema::SCHEMA_ID,
225
230
  schema_version_id: @schema::SCHEMA_VERSION_ID
226
231
  )
227
232
  resp = @stub.continue_scan(req)
@@ -239,6 +244,7 @@ module StatelyDB
239
244
  def sync_list(token)
240
245
  req = Stately::Db::SyncListRequest.new(
241
246
  token_data: token.token_data,
247
+ schema_id: @schema::SCHEMA_ID,
242
248
  schema_version_id: @schema::SCHEMA_VERSION_ID
243
249
  )
244
250
  resp = @stub.sync_list(req)
@@ -301,6 +307,7 @@ module StatelyDB
301
307
  end
302
308
  req = Stately::Db::PutRequest.new(
303
309
  store_id: @store_id,
310
+ schema_id: @schema::SCHEMA_ID,
304
311
  schema_version_id: @schema::SCHEMA_VERSION_ID,
305
312
  puts:
306
313
  )
@@ -324,6 +331,7 @@ module StatelyDB
324
331
  key_paths = Array(key_paths).flatten
325
332
  req = Stately::Db::DeleteRequest.new(
326
333
  store_id: @store_id,
334
+ schema_id: @schema::SCHEMA_ID,
327
335
  schema_version_id: @schema::SCHEMA_VERSION_ID,
328
336
  deletes: key_paths.map { |key_path| Stately::Db::DeleteItem.new(key_path: String(key_path)) }
329
337
  )
@@ -127,6 +127,7 @@ module StatelyDB
127
127
  @is_transaction_open = true
128
128
  req = Stately::Db::TransactionRequest.new(
129
129
  begin: Stately::Db::TransactionBegin.new(store_id: @store_id.to_i,
130
+ schema_id: @schema::SCHEMA_ID,
130
131
  schema_version_id: @schema::SCHEMA_VERSION_ID)
131
132
  )
132
133
  request_only(req)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statelydb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stately Cloud, Inc.