Commits

shantanuk  committed 8538d1e

rename 'sql' function as 'query'
create alias >> to the 'query' function

  • Participants
  • Parent commits 8d76f97

Comments (0)

Files changed (1)

File src/main/clj/org/bituf/sqlrat/clause.clj

     (as-clause (into [qexpr] qparm))))
 
 
-(defn sql
+(defn query
   "Merge clauses with interposed space. Useful to construct free-form clauses.
-  Example: (sql :SELECT :* :FROM :emp :WHERE (=? :id 56))
+  Example: (query :SELECT :* :FROM :emp :WHERE (=? :id 56))
            => [\"SELECT * FROM emp WHERE id=?\" 56]
   See also: merge-clauses"
   [& clauses]
   (apply merge-clauses (interpose (as-clause " ") clauses)))
 
 
+(def ^{:doc "Alias for the 'query' function"}
+      >> query)
+
+
 (defn merge-key-clauses
   [prefix ^Keyword k ^IPersistentVector clause & more]
   (let [clauses (into [clause] more)