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 +4 -4
- data/lib/statelydb.rb +8 -0
- data/lib/transaction/transaction.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b04c96f6fe3528b4be74067b74cb9a7f2305e6ff51a32d4a906b2a8ae5689c4e
|
4
|
+
data.tar.gz: 186c527fbaa091d2e5dfad88ffac574ced06e3ec9f5f0934cf5c3a39f599af21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|