@@ -490,6 +490,30 @@ public func ~=<V : Value>(lhs: Range<V>, rhs: Expression<V?>) -> Expression<Bool
490490    return  Expression ( " \( rhs. template)  >= ? AND  \( rhs. template)  < ? " ,  rhs. bindings +  [ lhs. lowerBound. datatypeValue]  +  rhs. bindings +  [ lhs. upperBound. datatypeValue] ) 
491491} 
492492
493+ public  func  ~= < V :  Value > ( lhs:  PartialRangeThrough < V > ,  rhs:  Expression < V > )  ->  Expression < Bool >  where  V. Datatype :  Comparable  &  Value  { 
494+     return  Expression ( " \( rhs. template)  <= ? " ,  rhs. bindings +  [ lhs. upperBound. datatypeValue] ) 
495+ } 
496+ 
497+ public  func  ~= < V :  Value > ( lhs:  PartialRangeThrough < V > ,  rhs:  Expression < V ? > )  ->  Expression < Bool ? >  where  V. Datatype :  Comparable  &  Value  { 
498+     return  Expression ( " \( rhs. template)  <= ? " ,  rhs. bindings +  [ lhs. upperBound. datatypeValue] ) 
499+ } 
500+ 
501+ public  func  ~= < V :  Value > ( lhs:  PartialRangeUpTo < V > ,  rhs:  Expression < V > )  ->  Expression < Bool >  where  V. Datatype :  Comparable  &  Value  { 
502+     return  Expression ( " \( rhs. template)  < ? " ,  rhs. bindings +  [ lhs. upperBound. datatypeValue] ) 
503+ } 
504+ 
505+ public  func  ~= < V :  Value > ( lhs:  PartialRangeUpTo < V > ,  rhs:  Expression < V ? > )  ->  Expression < Bool ? >  where  V. Datatype :  Comparable  &  Value  { 
506+     return  Expression ( " \( rhs. template)  < ? " ,  rhs. bindings +  [ lhs. upperBound. datatypeValue] ) 
507+ } 
508+ 
509+ public  func  ~= < V :  Value > ( lhs:  PartialRangeFrom < V > ,  rhs:  Expression < V > )  ->  Expression < Bool >  where  V. Datatype :  Comparable  &  Value  { 
510+     return  Expression ( " \( rhs. template)  >= ? " ,  rhs. bindings +  [ lhs. lowerBound. datatypeValue] ) 
511+ } 
512+ 
513+ public  func  ~= < V :  Value > ( lhs:  PartialRangeFrom < V > ,  rhs:  Expression < V ? > )  ->  Expression < Bool ? >  where  V. Datatype :  Comparable  &  Value  { 
514+     return  Expression ( " \( rhs. template)  >= ? " ,  rhs. bindings +  [ lhs. lowerBound. datatypeValue] ) 
515+ } 
516+ 
493517// MARK: -
494518
495519public  func  && ( lhs:  Expression < Bool > ,  rhs:  Expression < Bool > )  ->  Expression < Bool >  { 
0 commit comments