statelydb 0.25.1 → 0.29.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.
@@ -0,0 +1,69 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: db/list_filters.proto
3
+ # typed: strict
4
+
5
+ class Stately::Db::FilterCondition
6
+ include ::Google::Protobuf::MessageExts
7
+ extend ::Google::Protobuf::MessageExts::ClassMethods
8
+
9
+ sig do
10
+ params(
11
+ item_type: T.nilable(String)
12
+ ).void
13
+ end
14
+ def initialize(
15
+ item_type: ""
16
+ )
17
+ end
18
+
19
+ # item_type is the type of item to filter by.
20
+ sig { returns(String) }
21
+ def item_type
22
+ end
23
+
24
+ # item_type is the type of item to filter by.
25
+ sig { params(value: String).void }
26
+ def item_type=(value)
27
+ end
28
+
29
+ # item_type is the type of item to filter by.
30
+ sig { void }
31
+ def clear_item_type
32
+ end
33
+
34
+ sig { returns(T.nilable(Symbol)) }
35
+ def value
36
+ end
37
+
38
+ sig { params(field: String).returns(T.untyped) }
39
+ def [](field)
40
+ end
41
+
42
+ sig { params(field: String, value: T.untyped).void }
43
+ def []=(field, value)
44
+ end
45
+
46
+ sig { returns(T::Hash[Symbol, T.untyped]) }
47
+ def to_h
48
+ end
49
+
50
+ sig { params(str: String).returns(Stately::Db::FilterCondition) }
51
+ def self.decode(str)
52
+ end
53
+
54
+ sig { params(msg: Stately::Db::FilterCondition).returns(String) }
55
+ def self.encode(msg)
56
+ end
57
+
58
+ sig { params(str: String, kw: T.untyped).returns(Stately::Db::FilterCondition) }
59
+ def self.decode_json(str, **kw)
60
+ end
61
+
62
+ sig { params(msg: Stately::Db::FilterCondition, kw: T.untyped).returns(String) }
63
+ def self.encode_json(msg, **kw)
64
+ end
65
+
66
+ sig { returns(::Google::Protobuf::Descriptor) }
67
+ def self.descriptor
68
+ end
69
+ end
data/rbi/db/list_pb.rbi CHANGED
@@ -15,7 +15,9 @@ class Stately::Db::BeginListRequest
15
15
  sort_property: T.nilable(T.any(Symbol, String, Integer)),
16
16
  sort_direction: T.nilable(T.any(Symbol, String, Integer)),
17
17
  schema_version_id: T.nilable(Integer),
18
- schema_id: T.nilable(Integer)
18
+ schema_id: T.nilable(Integer),
19
+ filter_conditions: T.nilable(T::Array[T.nilable(Stately::Db::FilterCondition)]),
20
+ key_conditions: T.nilable(T::Array[T.nilable(Stately::Db::KeyCondition)])
19
21
  ).void
20
22
  end
21
23
  def initialize(
@@ -26,7 +28,9 @@ class Stately::Db::BeginListRequest
26
28
  sort_property: :SORTABLE_PROPERTY_KEY_PATH,
27
29
  sort_direction: :SORT_ASCENDING,
28
30
  schema_version_id: 0,
29
- schema_id: 0
31
+ schema_id: 0,
32
+ filter_conditions: [],
33
+ key_conditions: []
30
34
  )
31
35
  end
32
36
 
@@ -198,6 +202,123 @@ class Stately::Db::BeginListRequest
198
202
  def clear_schema_id
199
203
  end
200
204
 
205
+ # filter_conditions are a set of conditions to filter the list result by.
206
+ # If no conditions are provided, all items in the store will be returned.
207
+ # Filter conditions are combined with OR.
208
+ sig { returns(T::Array[T.nilable(Stately::Db::FilterCondition)]) }
209
+ def filter_conditions
210
+ end
211
+
212
+ # filter_conditions are a set of conditions to filter the list result by.
213
+ # If no conditions are provided, all items in the store will be returned.
214
+ # Filter conditions are combined with OR.
215
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
216
+ def filter_conditions=(value)
217
+ end
218
+
219
+ # filter_conditions are a set of conditions to filter the list result by.
220
+ # If no conditions are provided, all items in the store will be returned.
221
+ # Filter conditions are combined with OR.
222
+ sig { void }
223
+ def clear_filter_conditions
224
+ end
225
+
226
+ # key_conditions are a set of conditions to apply to the list operation.
227
+ # Wherever possible, Stately will apply these key conditions at the DB layer
228
+ # to optimize the list operation cost.
229
+ #
230
+ # A maximum of two key conditions are allowed: one with a GREATER_THAN (or equal to)
231
+ # operator and one with a LESS_THAN (or equal to) operator. Together these amount to
232
+ # a "between" condition on the key path.
233
+ #
234
+ # If these conditions are provided they must share the same prefix as the
235
+ # key_path_prefix. For example, the following is valid:
236
+ #
237
+ # key_path_prefix: "/group-:groupID/namespace"
238
+ # key_conditions:
239
+ # - key_path: "/group-:groupID/namespace-44"
240
+ # operator: GREATER_THAN_OR_EQUAL
241
+ # - key_path: "/group-:groupID/namespace-100"
242
+ # operator: LESS_THAN_OR_EQUAL
243
+ #
244
+ # A key_path_prefix of "/group-:groupID" would also be valid above, as the prefix is shared
245
+ # with the key conditions.
246
+ #
247
+ # The following is NOT valid because the key_path_prefix does not
248
+ # share the same prefix as the key conditions:
249
+ #
250
+ # key_path_prefix: "/group-:groupID/namespace"
251
+ # key_conditions:
252
+ # - key_path: "/group-:groupID/beatles-1984"
253
+ # operator: GREATER_THAN_OR_EQUAL
254
+ sig { returns(T::Array[T.nilable(Stately::Db::KeyCondition)]) }
255
+ def key_conditions
256
+ end
257
+
258
+ # key_conditions are a set of conditions to apply to the list operation.
259
+ # Wherever possible, Stately will apply these key conditions at the DB layer
260
+ # to optimize the list operation cost.
261
+ #
262
+ # A maximum of two key conditions are allowed: one with a GREATER_THAN (or equal to)
263
+ # operator and one with a LESS_THAN (or equal to) operator. Together these amount to
264
+ # a "between" condition on the key path.
265
+ #
266
+ # If these conditions are provided they must share the same prefix as the
267
+ # key_path_prefix. For example, the following is valid:
268
+ #
269
+ # key_path_prefix: "/group-:groupID/namespace"
270
+ # key_conditions:
271
+ # - key_path: "/group-:groupID/namespace-44"
272
+ # operator: GREATER_THAN_OR_EQUAL
273
+ # - key_path: "/group-:groupID/namespace-100"
274
+ # operator: LESS_THAN_OR_EQUAL
275
+ #
276
+ # A key_path_prefix of "/group-:groupID" would also be valid above, as the prefix is shared
277
+ # with the key conditions.
278
+ #
279
+ # The following is NOT valid because the key_path_prefix does not
280
+ # share the same prefix as the key conditions:
281
+ #
282
+ # key_path_prefix: "/group-:groupID/namespace"
283
+ # key_conditions:
284
+ # - key_path: "/group-:groupID/beatles-1984"
285
+ # operator: GREATER_THAN_OR_EQUAL
286
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
287
+ def key_conditions=(value)
288
+ end
289
+
290
+ # key_conditions are a set of conditions to apply to the list operation.
291
+ # Wherever possible, Stately will apply these key conditions at the DB layer
292
+ # to optimize the list operation cost.
293
+ #
294
+ # A maximum of two key conditions are allowed: one with a GREATER_THAN (or equal to)
295
+ # operator and one with a LESS_THAN (or equal to) operator. Together these amount to
296
+ # a "between" condition on the key path.
297
+ #
298
+ # If these conditions are provided they must share the same prefix as the
299
+ # key_path_prefix. For example, the following is valid:
300
+ #
301
+ # key_path_prefix: "/group-:groupID/namespace"
302
+ # key_conditions:
303
+ # - key_path: "/group-:groupID/namespace-44"
304
+ # operator: GREATER_THAN_OR_EQUAL
305
+ # - key_path: "/group-:groupID/namespace-100"
306
+ # operator: LESS_THAN_OR_EQUAL
307
+ #
308
+ # A key_path_prefix of "/group-:groupID" would also be valid above, as the prefix is shared
309
+ # with the key conditions.
310
+ #
311
+ # The following is NOT valid because the key_path_prefix does not
312
+ # share the same prefix as the key conditions:
313
+ #
314
+ # key_path_prefix: "/group-:groupID/namespace"
315
+ # key_conditions:
316
+ # - key_path: "/group-:groupID/beatles-1984"
317
+ # operator: GREATER_THAN_OR_EQUAL
318
+ sig { void }
319
+ def clear_key_conditions
320
+ end
321
+
201
322
  sig { params(field: String).returns(T.untyped) }
202
323
  def [](field)
203
324
  end
@@ -448,6 +569,126 @@ class Stately::Db::ListFinished
448
569
  end
449
570
  end
450
571
 
572
+ # A KeyCondition is an additional constraint to be applied to the list
573
+ # operation. It is used to filter the results based on a specific key path
574
+ # and an operator.
575
+ # Wherever possible, stately will apply these key conditions at the DB layer
576
+ # to optimize the list operation latency and cost.
577
+ # Key conditions may be combined with a key_path_prefix to further
578
+ # optimize the list operation. HOWEVER Key conditions must share the
579
+ # same prefix as the key_path_prefix.
580
+ class Stately::Db::KeyCondition
581
+ include ::Google::Protobuf::MessageExts
582
+ extend ::Google::Protobuf::MessageExts::ClassMethods
583
+
584
+ sig do
585
+ params(
586
+ key_path: T.nilable(String),
587
+ operator: T.nilable(T.any(Symbol, String, Integer))
588
+ ).void
589
+ end
590
+ def initialize(
591
+ key_path: "",
592
+ operator: :OPERATOR_UNSPECIFIED
593
+ )
594
+ end
595
+
596
+ # key_path is a valid key prefix (or full key) used to filter or optimize the list
597
+ # operation based on the operator specified below.
598
+ sig { returns(String) }
599
+ def key_path
600
+ end
601
+
602
+ # key_path is a valid key prefix (or full key) used to filter or optimize the list
603
+ # operation based on the operator specified below.
604
+ sig { params(value: String).void }
605
+ def key_path=(value)
606
+ end
607
+
608
+ # key_path is a valid key prefix (or full key) used to filter or optimize the list
609
+ # operation based on the operator specified below.
610
+ sig { void }
611
+ def clear_key_path
612
+ end
613
+
614
+ # Operator indicates how to apply key_path condition to the list operation.
615
+ # Valid options are:
616
+ # - GREATER_THAN: key_path must be greater than the specified value
617
+ # - GREATER_THAN_OR_EQUAL: key_path must be greater than or equal to the specified value
618
+ # - LESS_THAN: key_path must be less than the specified value
619
+ # - LESS_THAN_OR_EQUAL: key_path must be less than or equal to the specified value
620
+ #
621
+ # Note: Operators are strictly evaluated they do not change meaning based on sort direction.
622
+ # For example, regardless of sort direction, a GREATER_THAN operator
623
+ # will still mean that a key_path must be greater than the specified value in order
624
+ # to be included in the result set.
625
+ sig { returns(T.any(Symbol, Integer)) }
626
+ def operator
627
+ end
628
+
629
+ # Operator indicates how to apply key_path condition to the list operation.
630
+ # Valid options are:
631
+ # - GREATER_THAN: key_path must be greater than the specified value
632
+ # - GREATER_THAN_OR_EQUAL: key_path must be greater than or equal to the specified value
633
+ # - LESS_THAN: key_path must be less than the specified value
634
+ # - LESS_THAN_OR_EQUAL: key_path must be less than or equal to the specified value
635
+ #
636
+ # Note: Operators are strictly evaluated they do not change meaning based on sort direction.
637
+ # For example, regardless of sort direction, a GREATER_THAN operator
638
+ # will still mean that a key_path must be greater than the specified value in order
639
+ # to be included in the result set.
640
+ sig { params(value: T.any(Symbol, String, Integer)).void }
641
+ def operator=(value)
642
+ end
643
+
644
+ # Operator indicates how to apply key_path condition to the list operation.
645
+ # Valid options are:
646
+ # - GREATER_THAN: key_path must be greater than the specified value
647
+ # - GREATER_THAN_OR_EQUAL: key_path must be greater than or equal to the specified value
648
+ # - LESS_THAN: key_path must be less than the specified value
649
+ # - LESS_THAN_OR_EQUAL: key_path must be less than or equal to the specified value
650
+ #
651
+ # Note: Operators are strictly evaluated they do not change meaning based on sort direction.
652
+ # For example, regardless of sort direction, a GREATER_THAN operator
653
+ # will still mean that a key_path must be greater than the specified value in order
654
+ # to be included in the result set.
655
+ sig { void }
656
+ def clear_operator
657
+ end
658
+
659
+ sig { params(field: String).returns(T.untyped) }
660
+ def [](field)
661
+ end
662
+
663
+ sig { params(field: String, value: T.untyped).void }
664
+ def []=(field, value)
665
+ end
666
+
667
+ sig { returns(T::Hash[Symbol, T.untyped]) }
668
+ def to_h
669
+ end
670
+
671
+ sig { params(str: String).returns(Stately::Db::KeyCondition) }
672
+ def self.decode(str)
673
+ end
674
+
675
+ sig { params(msg: Stately::Db::KeyCondition).returns(String) }
676
+ def self.encode(msg)
677
+ end
678
+
679
+ sig { params(str: String, kw: T.untyped).returns(Stately::Db::KeyCondition) }
680
+ def self.decode_json(str, **kw)
681
+ end
682
+
683
+ sig { params(msg: Stately::Db::KeyCondition, kw: T.untyped).returns(String) }
684
+ def self.encode_json(msg, **kw)
685
+ end
686
+
687
+ sig { returns(::Google::Protobuf::Descriptor) }
688
+ def self.descriptor
689
+ end
690
+ end
691
+
451
692
  module Stately::Db::SortDirection
452
693
  self::SORT_ASCENDING = T.let(0, Integer)
453
694
  self::SORT_DESCENDING = T.let(1, Integer)
@@ -464,3 +705,23 @@ module Stately::Db::SortDirection
464
705
  def self.descriptor
465
706
  end
466
707
  end
708
+
709
+ module Stately::Db::Operator
710
+ self::OPERATOR_UNSPECIFIED = T.let(0, Integer)
711
+ self::OPERATOR_GREATER_THAN = T.let(4, Integer)
712
+ self::OPERATOR_GREATER_THAN_OR_EQUAL = T.let(5, Integer)
713
+ self::OPERATOR_LESS_THAN = T.let(6, Integer)
714
+ self::OPERATOR_LESS_THAN_OR_EQUAL = T.let(7, Integer)
715
+
716
+ sig { params(value: Integer).returns(T.nilable(Symbol)) }
717
+ def self.lookup(value)
718
+ end
719
+
720
+ sig { params(value: Symbol).returns(T.nilable(Integer)) }
721
+ def self.resolve(value)
722
+ end
723
+
724
+ sig { returns(::Google::Protobuf::EnumDescriptor) }
725
+ def self.descriptor
726
+ end
727
+ end
data/rbi/db/put_pb.rbi CHANGED
@@ -40,17 +40,17 @@ class Stately::Db::PutRequest
40
40
  def clear_store_id
41
41
  end
42
42
 
43
- # puts is up to 50 items to be put into the Store.
43
+ # items to put into the store.
44
44
  sig { returns(T::Array[T.nilable(Stately::Db::PutItem)]) }
45
45
  def puts
46
46
  end
47
47
 
48
- # puts is up to 50 items to be put into the Store.
48
+ # items to put into the store.
49
49
  sig { params(value: ::Google::Protobuf::RepeatedField).void }
50
50
  def puts=(value)
51
51
  end
52
52
 
53
- # puts is up to 50 items to be put into the Store.
53
+ # items to put into the store.
54
54
  sig { void }
55
55
  def clear_puts
56
56
  end
data/rbi/db/scan_pb.rbi CHANGED
@@ -2,72 +2,6 @@
2
2
  # source: db/scan.proto
3
3
  # typed: strict
4
4
 
5
- class Stately::Db::FilterCondition
6
- include ::Google::Protobuf::MessageExts
7
- extend ::Google::Protobuf::MessageExts::ClassMethods
8
-
9
- sig do
10
- params(
11
- item_type: T.nilable(String)
12
- ).void
13
- end
14
- def initialize(
15
- item_type: ""
16
- )
17
- end
18
-
19
- # item_type is the type of item to filter by.
20
- sig { returns(String) }
21
- def item_type
22
- end
23
-
24
- # item_type is the type of item to filter by.
25
- sig { params(value: String).void }
26
- def item_type=(value)
27
- end
28
-
29
- # item_type is the type of item to filter by.
30
- sig { void }
31
- def clear_item_type
32
- end
33
-
34
- sig { returns(T.nilable(Symbol)) }
35
- def value
36
- end
37
-
38
- sig { params(field: String).returns(T.untyped) }
39
- def [](field)
40
- end
41
-
42
- sig { params(field: String, value: T.untyped).void }
43
- def []=(field, value)
44
- end
45
-
46
- sig { returns(T::Hash[Symbol, T.untyped]) }
47
- def to_h
48
- end
49
-
50
- sig { params(str: String).returns(Stately::Db::FilterCondition) }
51
- def self.decode(str)
52
- end
53
-
54
- sig { params(msg: Stately::Db::FilterCondition).returns(String) }
55
- def self.encode(msg)
56
- end
57
-
58
- sig { params(str: String, kw: T.untyped).returns(Stately::Db::FilterCondition) }
59
- def self.decode_json(str, **kw)
60
- end
61
-
62
- sig { params(msg: Stately::Db::FilterCondition, kw: T.untyped).returns(String) }
63
- def self.encode_json(msg, **kw)
64
- end
65
-
66
- sig { returns(::Google::Protobuf::Descriptor) }
67
- def self.descriptor
68
- end
69
- end
70
-
71
5
  class Stately::Db::BeginScanRequest
72
6
  include ::Google::Protobuf::MessageExts
73
7
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -559,17 +559,17 @@ class Stately::Db::TransactionGet
559
559
  )
560
560
  end
561
561
 
562
- # gets is up to 100 requests to get an item its key path.
562
+ # key paths to of each item to get.
563
563
  sig { returns(T::Array[T.nilable(Stately::Db::GetItem)]) }
564
564
  def gets
565
565
  end
566
566
 
567
- # gets is up to 100 requests to get an item its key path.
567
+ # key paths to of each item to get.
568
568
  sig { params(value: ::Google::Protobuf::RepeatedField).void }
569
569
  def gets=(value)
570
570
  end
571
571
 
572
- # gets is up to 100 requests to get an item its key path.
572
+ # key paths to of each item to get.
573
573
  sig { void }
574
574
  def clear_gets
575
575
  end
@@ -618,14 +618,18 @@ class Stately::Db::TransactionBeginList
618
618
  key_path_prefix: T.nilable(String),
619
619
  limit: T.nilable(Integer),
620
620
  sort_property: T.nilable(T.any(Symbol, String, Integer)),
621
- sort_direction: T.nilable(T.any(Symbol, String, Integer))
621
+ sort_direction: T.nilable(T.any(Symbol, String, Integer)),
622
+ filter_conditions: T.nilable(T::Array[T.nilable(Stately::Db::FilterCondition)]),
623
+ key_conditions: T.nilable(T::Array[T.nilable(Stately::Db::KeyCondition)])
622
624
  ).void
623
625
  end
624
626
  def initialize(
625
627
  key_path_prefix: "",
626
628
  limit: 0,
627
629
  sort_property: :SORTABLE_PROPERTY_KEY_PATH,
628
- sort_direction: :SORT_ASCENDING
630
+ sort_direction: :SORT_ASCENDING,
631
+ filter_conditions: [],
632
+ key_conditions: []
629
633
  )
630
634
  end
631
635
 
@@ -707,6 +711,123 @@ class Stately::Db::TransactionBeginList
707
711
  def clear_sort_direction
708
712
  end
709
713
 
714
+ # filter_conditions are a set of conditions to filter the list result by.
715
+ # If no conditions are provided, all items in the store will be returned.
716
+ # Filter conditions are combined with OR.
717
+ sig { returns(T::Array[T.nilable(Stately::Db::FilterCondition)]) }
718
+ def filter_conditions
719
+ end
720
+
721
+ # filter_conditions are a set of conditions to filter the list result by.
722
+ # If no conditions are provided, all items in the store will be returned.
723
+ # Filter conditions are combined with OR.
724
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
725
+ def filter_conditions=(value)
726
+ end
727
+
728
+ # filter_conditions are a set of conditions to filter the list result by.
729
+ # If no conditions are provided, all items in the store will be returned.
730
+ # Filter conditions are combined with OR.
731
+ sig { void }
732
+ def clear_filter_conditions
733
+ end
734
+
735
+ # key_conditions are a set of conditions to apply to the list operation.
736
+ # Wherever possible, Stately will apply these key conditions at the DB layer
737
+ # to optimize the list operation cost.
738
+ #
739
+ # A maximum of two key conditions are allowed, one with a GREATER_THAN (or equal to)
740
+ # operator and one with a LESS_THAN (or equal to) operator. Together these amount to
741
+ # a "between" condition on the key path.
742
+ #
743
+ # If these conditions are provided they must share the same prefix as the
744
+ # key_path_prefix. For example this is valid:
745
+ #
746
+ # key_path_prefix: "/group-:groupID/namespace"
747
+ # key_conditions:
748
+ # - key_path: "/group-:groupID/namespace-44"
749
+ # operator: GREATER_THAN_OR_EQUAL
750
+ # - key_path: "/group-:groupID/namespace-100"
751
+ # operator: LESS_THAN_OR_EQUAL
752
+ #
753
+ # A key_path_prefix of "/group-:groupID" would also be valid above, as the prefix is shared
754
+ # with the key conditions.
755
+ #
756
+ # The following is NOT valid because the key_path_prefix does not
757
+ # share the same prefix as the key conditions:
758
+ #
759
+ # key_path_prefix: "/group-:groupID/namespace"
760
+ # key_conditions:
761
+ # - key_path: "/group-:groupID/beatles-1984"
762
+ # operator: GREATER_THAN_OR_EQUAL
763
+ sig { returns(T::Array[T.nilable(Stately::Db::KeyCondition)]) }
764
+ def key_conditions
765
+ end
766
+
767
+ # key_conditions are a set of conditions to apply to the list operation.
768
+ # Wherever possible, Stately will apply these key conditions at the DB layer
769
+ # to optimize the list operation cost.
770
+ #
771
+ # A maximum of two key conditions are allowed, one with a GREATER_THAN (or equal to)
772
+ # operator and one with a LESS_THAN (or equal to) operator. Together these amount to
773
+ # a "between" condition on the key path.
774
+ #
775
+ # If these conditions are provided they must share the same prefix as the
776
+ # key_path_prefix. For example this is valid:
777
+ #
778
+ # key_path_prefix: "/group-:groupID/namespace"
779
+ # key_conditions:
780
+ # - key_path: "/group-:groupID/namespace-44"
781
+ # operator: GREATER_THAN_OR_EQUAL
782
+ # - key_path: "/group-:groupID/namespace-100"
783
+ # operator: LESS_THAN_OR_EQUAL
784
+ #
785
+ # A key_path_prefix of "/group-:groupID" would also be valid above, as the prefix is shared
786
+ # with the key conditions.
787
+ #
788
+ # The following is NOT valid because the key_path_prefix does not
789
+ # share the same prefix as the key conditions:
790
+ #
791
+ # key_path_prefix: "/group-:groupID/namespace"
792
+ # key_conditions:
793
+ # - key_path: "/group-:groupID/beatles-1984"
794
+ # operator: GREATER_THAN_OR_EQUAL
795
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
796
+ def key_conditions=(value)
797
+ end
798
+
799
+ # key_conditions are a set of conditions to apply to the list operation.
800
+ # Wherever possible, Stately will apply these key conditions at the DB layer
801
+ # to optimize the list operation cost.
802
+ #
803
+ # A maximum of two key conditions are allowed, one with a GREATER_THAN (or equal to)
804
+ # operator and one with a LESS_THAN (or equal to) operator. Together these amount to
805
+ # a "between" condition on the key path.
806
+ #
807
+ # If these conditions are provided they must share the same prefix as the
808
+ # key_path_prefix. For example this is valid:
809
+ #
810
+ # key_path_prefix: "/group-:groupID/namespace"
811
+ # key_conditions:
812
+ # - key_path: "/group-:groupID/namespace-44"
813
+ # operator: GREATER_THAN_OR_EQUAL
814
+ # - key_path: "/group-:groupID/namespace-100"
815
+ # operator: LESS_THAN_OR_EQUAL
816
+ #
817
+ # A key_path_prefix of "/group-:groupID" would also be valid above, as the prefix is shared
818
+ # with the key conditions.
819
+ #
820
+ # The following is NOT valid because the key_path_prefix does not
821
+ # share the same prefix as the key conditions:
822
+ #
823
+ # key_path_prefix: "/group-:groupID/namespace"
824
+ # key_conditions:
825
+ # - key_path: "/group-:groupID/beatles-1984"
826
+ # operator: GREATER_THAN_OR_EQUAL
827
+ sig { void }
828
+ def clear_key_conditions
829
+ end
830
+
710
831
  sig { params(field: String).returns(T.untyped) }
711
832
  def [](field)
712
833
  end
@@ -845,17 +966,17 @@ class Stately::Db::TransactionPut
845
966
  )
846
967
  end
847
968
 
848
- # puts is up to 50 items to be put into the Store.
969
+ # items to put into the store.
849
970
  sig { returns(T::Array[T.nilable(Stately::Db::PutItem)]) }
850
971
  def puts
851
972
  end
852
973
 
853
- # puts is up to 50 items to be put into the Store.
974
+ # items to put into the store.
854
975
  sig { params(value: ::Google::Protobuf::RepeatedField).void }
855
976
  def puts=(value)
856
977
  end
857
978
 
858
- # puts is up to 50 items to be put into the Store.
979
+ # items to put into the store.
859
980
  sig { void }
860
981
  def clear_puts
861
982
  end
@@ -910,17 +1031,17 @@ class Stately::Db::TransactionDelete
910
1031
  )
911
1032
  end
912
1033
 
913
- # deletes is up to 50 to be deleted from the Group.
1034
+ # key paths of items to delete.
914
1035
  sig { returns(T::Array[T.nilable(Stately::Db::DeleteItem)]) }
915
1036
  def deletes
916
1037
  end
917
1038
 
918
- # deletes is up to 50 to be deleted from the Group.
1039
+ # key paths of items to delete.
919
1040
  sig { params(value: ::Google::Protobuf::RepeatedField).void }
920
1041
  def deletes=(value)
921
1042
  end
922
1043
 
923
- # deletes is up to 50 to be deleted from the Group.
1044
+ # key paths of items to delete.
924
1045
  sig { void }
925
1046
  def clear_deletes
926
1047
  end