added the '~* ANY' and Array operators / expressions
[clsql.git] / sql / operations.lisp
index 1b52925347434b6e6d56325d7a8ce35a164bc39b..3357761e53a257312bf9ce93793dcdcededb3127 100644 (file)
   (make-instance 'sql-relational-exp
                  :operator '~* :sub-expressions rest))
 
+(defsql |sql-~* ANY| (:symbol "~* ANY") (&rest rest)
+       "This is the postgres regex match any in an array"
+  (make-instance 'sql-relational-exp
+                 :operator '|~* ANY| :sub-expressions rest))
+
+(defsql sql-array (:symbol "array") (&rest rest)
+       "This is the postgres regex match any in an array"
+  (make-instance 'sql-array-exp
+                 :operator 'array :sub-expressions rest))
+
 (defsql sql-uplike (:symbol "uplike") (&rest rest)
   (make-instance 'sql-upcase-like
                  :sub-expressions rest))