@@ -92,6 +92,10 @@ public extension Expression {
92
92
return BooleanExpression ( " array_contains_all " , [ self , Helper . array ( values) ] )
93
93
}
94
94
95
+ func arrayContainsAll( _ arrayExpression: Expression ) -> BooleanExpression {
96
+ return BooleanExpression ( " array_contains_all " , [ self , arrayExpression] )
97
+ }
98
+
95
99
func arrayContainsAny( _ values: [ Expression ] ) -> BooleanExpression {
96
100
return BooleanExpression ( " array_contains_any " , [ self , Helper . array ( values) ] )
97
101
}
@@ -100,6 +104,10 @@ public extension Expression {
100
104
return BooleanExpression ( " array_contains_any " , [ self , Helper . array ( values) ] )
101
105
}
102
106
107
+ func arrayContainsAny( _ arrayExpression: Expression ) -> BooleanExpression {
108
+ return BooleanExpression ( " array_contains_any " , [ self , arrayExpression] )
109
+ }
110
+
103
111
func arrayLength( ) -> FunctionExpression {
104
112
return FunctionExpression ( " array_length " , [ self ] )
105
113
}
@@ -165,22 +173,30 @@ public extension Expression {
165
173
return BooleanExpression ( " neq " , [ self , Helper . sendableToExpr ( other) ] )
166
174
}
167
175
168
- func eqAny ( _ others: [ Expression ] ) -> BooleanExpression {
176
+ func equalAny ( _ others: [ Expression ] ) -> BooleanExpression {
169
177
return BooleanExpression ( " eq_any " , [ self , Helper . array ( others) ] )
170
178
}
171
179
172
- func eqAny ( _ others: [ Sendable ] ) -> BooleanExpression {
180
+ func equalAny ( _ others: [ Sendable ] ) -> BooleanExpression {
173
181
return BooleanExpression ( " eq_any " , [ self , Helper . array ( others) ] )
174
182
}
175
183
176
- func notEqAny( _ others: [ Expression ] ) -> BooleanExpression {
184
+ func equalAny( _ arrayExpression: Expression ) -> BooleanExpression {
185
+ return BooleanExpression ( " eq_any " , [ self , arrayExpression] )
186
+ }
187
+
188
+ func notEqualAny( _ others: [ Expression ] ) -> BooleanExpression {
177
189
return BooleanExpression ( " not_eq_any " , [ self , Helper . array ( others) ] )
178
190
}
179
191
180
- func notEqAny ( _ others: [ Sendable ] ) -> BooleanExpression {
192
+ func notEqualAny ( _ others: [ Sendable ] ) -> BooleanExpression {
181
193
return BooleanExpression ( " not_eq_any " , [ self , Helper . array ( others) ] )
182
194
}
183
195
196
+ func notEqualAny( _ arrayExpression: Expression ) -> BooleanExpression {
197
+ return BooleanExpression ( " not_eq_any " , [ self , arrayExpression] )
198
+ }
199
+
184
200
// MARK: Checks
185
201
186
202
// --- Added Type Check Operations ---
@@ -401,52 +417,52 @@ public extension Expression {
401
417
return FunctionExpression ( " vector_length " , [ self ] )
402
418
}
403
419
404
- func cosineDistance( _ other : Expression ) -> FunctionExpression {
405
- return FunctionExpression ( " cosine_distance " , [ self , other ] )
420
+ func cosineDistance( _ expression : Expression ) -> FunctionExpression {
421
+ return FunctionExpression ( " cosine_distance " , [ self , expression ] )
406
422
}
407
423
408
- func cosineDistance( _ other : VectorValue ) -> FunctionExpression {
409
- return FunctionExpression ( " cosine_distance " , [ self , Helper . sendableToExpr ( other ) ] )
424
+ func cosineDistance( _ vector : VectorValue ) -> FunctionExpression {
425
+ return FunctionExpression ( " cosine_distance " , [ self , Helper . sendableToExpr ( vector ) ] )
410
426
}
411
427
412
- func cosineDistance( _ other : [ Double ] ) -> FunctionExpression {
413
- return FunctionExpression ( " cosine_distance " , [ self , Helper . sendableToExpr ( other ) ] )
428
+ func cosineDistance( _ vector : [ Double ] ) -> FunctionExpression {
429
+ return FunctionExpression ( " cosine_distance " , [ self , Helper . sendableToExpr ( vector ) ] )
414
430
}
415
431
416
- func dotProduct( _ other : Expression ) -> FunctionExpression {
417
- return FunctionExpression ( " dot_product " , [ self , other ] )
432
+ func dotProduct( _ expression : Expression ) -> FunctionExpression {
433
+ return FunctionExpression ( " dot_product " , [ self , expression ] )
418
434
}
419
435
420
- func dotProduct( _ other : VectorValue ) -> FunctionExpression {
421
- return FunctionExpression ( " dot_product " , [ self , Helper . sendableToExpr ( other ) ] )
436
+ func dotProduct( _ vector : VectorValue ) -> FunctionExpression {
437
+ return FunctionExpression ( " dot_product " , [ self , Helper . sendableToExpr ( vector ) ] )
422
438
}
423
439
424
- func dotProduct( _ other : [ Double ] ) -> FunctionExpression {
425
- return FunctionExpression ( " dot_product " , [ self , Helper . sendableToExpr ( other ) ] )
440
+ func dotProduct( _ vector : [ Double ] ) -> FunctionExpression {
441
+ return FunctionExpression ( " dot_product " , [ self , Helper . sendableToExpr ( vector ) ] )
426
442
}
427
443
428
- func euclideanDistance( _ other : Expression ) -> FunctionExpression {
429
- return FunctionExpression ( " euclidean_distance " , [ self , other ] )
444
+ func euclideanDistance( _ expression : Expression ) -> FunctionExpression {
445
+ return FunctionExpression ( " euclidean_distance " , [ self , expression ] )
430
446
}
431
447
432
- func euclideanDistance( _ other : VectorValue ) -> FunctionExpression {
433
- return FunctionExpression ( " euclidean_distance " , [ self , Helper . sendableToExpr ( other ) ] )
448
+ func euclideanDistance( _ vector : VectorValue ) -> FunctionExpression {
449
+ return FunctionExpression ( " euclidean_distance " , [ self , Helper . sendableToExpr ( vector ) ] )
434
450
}
435
451
436
- func euclideanDistance( _ other : [ Double ] ) -> FunctionExpression {
437
- return FunctionExpression ( " euclidean_distance " , [ self , Helper . sendableToExpr ( other ) ] )
452
+ func euclideanDistance( _ vector : [ Double ] ) -> FunctionExpression {
453
+ return FunctionExpression ( " euclidean_distance " , [ self , Helper . sendableToExpr ( vector ) ] )
438
454
}
439
455
440
- func manhattanDistance( _ other : Expression ) -> FunctionExpression {
441
- return FunctionExpression ( " manhattan_distance " , [ self , other ] )
456
+ func manhattanDistance( _ expression : Expression ) -> FunctionExpression {
457
+ return FunctionExpression ( " manhattan_distance " , [ self , expression ] )
442
458
}
443
459
444
- func manhattanDistance( _ other : VectorValue ) -> FunctionExpression {
445
- return FunctionExpression ( " manhattan_distance " , [ self , Helper . sendableToExpr ( other ) ] )
460
+ func manhattanDistance( _ vector : VectorValue ) -> FunctionExpression {
461
+ return FunctionExpression ( " manhattan_distance " , [ self , Helper . sendableToExpr ( vector ) ] )
446
462
}
447
463
448
- func manhattanDistance( _ other : [ Double ] ) -> FunctionExpression {
449
- return FunctionExpression ( " manhattan_distance " , [ self , Helper . sendableToExpr ( other ) ] )
464
+ func manhattanDistance( _ vector : [ Double ] ) -> FunctionExpression {
465
+ return FunctionExpression ( " manhattan_distance " , [ self , Helper . sendableToExpr ( vector ) ] )
450
466
}
451
467
452
468
// MARK: Timestamp operations
0 commit comments