statelydb 0.20.2 → 0.21.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 +5 -2
- data/rbi/statelydb.rbi +2 -2
- data/sig/statelydb.rbs +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95aa86dd76ff3446c1a86be94ad0120fdee1d17f2d0c08b02e39f4f7cf7e698f
|
4
|
+
data.tar.gz: bb472f0d905e06df38d40224e06ebf2bf4cb7a202487e9059875c1b76159720e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e044d82595f1a7f3cdde633a3609e7a23b0f6ef1a8ee37a8fc1841a8717ba69f2521a11bb5798b8555748076fb72061cd5bc4658da8e8a63287a8355d054763f
|
7
|
+
data.tar.gz: 859fed28ef654e4fb96a120320e536421b41c822bbbf6095f3c2ab89b8741f998fba8d0c0284c0ae902e56b09112d19f3d71c3450c14d0f50241d0268c334246
|
data/lib/statelydb.rb
CHANGED
@@ -173,7 +173,10 @@ module StatelyDB
|
|
173
173
|
# WARNING: THIS API CAN BE EXTREMELY EXPENSIVE FOR STORES WITH A LARGE NUMBER
|
174
174
|
# OF ITEMS.
|
175
175
|
#
|
176
|
-
# @param limit [Integer] the
|
176
|
+
# @param limit [Integer] the max number of items to retrieve. If set to 0
|
177
|
+
# then the first page of results will be returned which may empty because it
|
178
|
+
# does not contain items of your selected item types. Be sure to check
|
179
|
+
# token.can_continue to see if there are more results to fetch.
|
177
180
|
# @param item_types [Array<Class, String>] the item types to filter by. The returned
|
178
181
|
# items will be instances of one of these types.
|
179
182
|
# @param total_segments [Integer] the total number of segments to divide the
|
@@ -184,7 +187,7 @@ module StatelyDB
|
|
184
187
|
#
|
185
188
|
# @example
|
186
189
|
# client.data.begin_scan(limit: 10, item_types: [MyItem])
|
187
|
-
def begin_scan(limit:
|
190
|
+
def begin_scan(limit: 0,
|
188
191
|
item_types: [],
|
189
192
|
total_segments: nil,
|
190
193
|
segment_index: nil)
|
data/rbi/statelydb.rbi
CHANGED
@@ -305,7 +305,7 @@ module StatelyDB
|
|
305
305
|
# WARNING: THIS API CAN BE EXTREMELY EXPENSIVE FOR STORES WITH A LARGE NUMBER
|
306
306
|
# OF ITEMS.
|
307
307
|
#
|
308
|
-
# _@param_ `limit` — the
|
308
|
+
# _@param_ `limit` — the max number of items to retrieve. If set to 0 then the first page of results will be returned which may empty because it does not contain items of your selected item types. Be sure to check token.can_continue to see if there are more results to fetch.
|
309
309
|
#
|
310
310
|
# _@param_ `item_types` — the item types to filter by. The returned items will be instances of one of these types.
|
311
311
|
#
|
@@ -326,7 +326,7 @@ module StatelyDB
|
|
326
326
|
segment_index: T.nilable(Integer)
|
327
327
|
).returns(T.any(T::Array[StatelyDB::Item], StatelyDB::Token))
|
328
328
|
end
|
329
|
-
def begin_scan(limit:
|
329
|
+
def begin_scan(limit: 0, item_types: [], total_segments: nil, segment_index: nil); end
|
330
330
|
|
331
331
|
# continue_scan takes the token from a begin_scan call and returns more results
|
332
332
|
# based on the original request parameters and pagination options.
|
data/sig/statelydb.rbs
CHANGED
@@ -260,7 +260,7 @@ module StatelyDB
|
|
260
260
|
# WARNING: THIS API CAN BE EXTREMELY EXPENSIVE FOR STORES WITH A LARGE NUMBER
|
261
261
|
# OF ITEMS.
|
262
262
|
#
|
263
|
-
# _@param_ `limit` — the
|
263
|
+
# _@param_ `limit` — the max number of items to retrieve. If set to 0 then the first page of results will be returned which may empty because it does not contain items of your selected item types. Be sure to check token.can_continue to see if there are more results to fetch.
|
264
264
|
#
|
265
265
|
# _@param_ `item_types` — the item types to filter by. The returned items will be instances of one of these types.
|
266
266
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statelydb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stately Cloud, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|