             [clojurewerkz.cassaforte.client :as cc])
   (:import com.datastax.driver.core.Session))
 
-(defn ^:private compile-query-
-  "Compiles query from given `builder` and `query-params`"
-  [builder query-params]
-  ;; TODO: mapcat identity here?
-  (apply builder (flatten query-params)))
-
 ;;
 ;; Schema operations
 ;;

                   (with {:replication
                          {:class \"SimpleStrategy\"
                           :replication_factor 1}}))"
  [^Session session & query-params]
  (cc/execute session
              (compile-query- q/create-keyspace-query query-params)))

(defn create-index
  "Creates a new (automatic) secondary index for a given (existing)

   Other columns values are specified through assignment within the `set` clause."
  [^Session session & query-params]
  (cc/execute session
              (apply new-query-api/update query-params)))

(defn update-async
  "Same as update but returns a future"
