Skip to content

Commit c9dbe35

Browse files
committed
Add array filter types
1 parent 1028cdd commit c9dbe35

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

labkey/query.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class Pagination:
6060
ALL = "all"
6161
NONE = "none"
6262

63-
6463
# TODO: Provide filter generators.
6564
#
6665
# There are some inconsistencies between the different filter types with multiple values,
@@ -114,6 +113,12 @@ class Types:
114113
CONTAINS_ONE_OF = "containsoneof"
115114
CONTAINS_NONE_OF = "containsnoneof"
116115

116+
ARRAY_CONTAINS_ALL = "arraycontainsall"
117+
ARRAY_CONTAINS_ANY = "arraycontainsany"
118+
ARRAY_CONTAINS_NONE = "arraycontainsnone"
119+
ARRAY_CONTAINS_EXACT = "arraymatches"
120+
ARRAY_CONTAINS_NOT_EXACT = "arraynotmatches"
121+
117122
IN = "in"
118123

119124
EQUALS_ONE_OF = "in"
@@ -135,6 +140,10 @@ class Types:
135140
HAS_MISSING_VALUE = "hasmvvalue"
136141
DOES_NOT_HAVE_MISSING_VALUE = "nomvvalue"
137142

143+
ARRAY_ISEMPTY = "arrayisempty"
144+
ARRAY_ISNOTEMPTY = "arrayisnotempty"
145+
146+
138147
# Table/Query-wise operators
139148
Q = "q"
140149

0 commit comments

Comments
 (0)