   (cc/async
    (apply insert session query-params)))
 
-(defn ^:private batch-query-from-
-  [table records]
-  (->> records
-       (map (comp (partial apply (partial q/insert-query table)) flatten vector))
-       (apply q/queries)))
-
-(defn insert-batch
-  "Performs a batch insert (inserts multiple records into a table at the same time).
-  To specify additional clauses for a record (such as where or using), wrap that record
-  and the clauses in a vector"
-  [^Session session table records]
-  (let [query-params (batch-query-from- table records)]
-    (cc/execute session (q/batch-query query-params))))
-
-(defn insert-batch-async
-  "Same as insert-batch but returns a future"
-  [^Session session table records]
-  (cc/async
-   (insert-batch session table records)))
-
-(defn atomic-batch
-  "Executes a group of operations as an atomic batch (BEGIN BATCH ... APPLY BATCH)"
-  [^Session session & clauses]
-  (cc/execute session
-              (compile-query- q/batch-query clauses)))
+;; (defn ^:private batch-query-from-
+;;   [table records]
+;;   (->> records
+;;        (map (comp (partial apply (partial new-query-api/insert table)) flatten vector))
+;;        (apply q/queries)))
+
+;; (defn insert-batch
+;;   "Performs a batch insert (inserts multiple records into a table at the same time).
+;;   To specify additional clauses for a record (such as where or using), wrap that record
+;;   and the clauses in a vector"
+;;   [^Session session table records]
+;;   (let [query-params (batch-query-from- table records)]
+;;     (cc/execute session (q/batch-query query-params))))
+
+;; (defn insert-batch-async
+;;   "Same as insert-batch but returns a future"
+;;   [^Session session table records]
+;;   (cc/async
+;;    (insert-batch session table records)))
+
+;; (defn atomic-batch
+;;   "Executes a group of operations as an atomic batch (BEGIN BATCH ... APPLY BATCH)"
+;;   [^Session session & clauses]
+;;   (cc/execute session
+;;               (apply q/batch-query clauses)))
 
 (defn update
   "Updates one or more columns for a given row in a table. The `where` clause

                    (if-not-exists))"
  [^Session session & query-params]
  (cc/execute session
              (compile-query- q/create-index-query query-params )))

(defn drop-index
  "Drop an existing secondary index. The argument of the statement
   is the index name.

   Example, drops an index on `users` table, `city` column:

       (drop-index th/session :users_city)"
  [^Session session & query-params]
  (cc/execute session
              (compile-query- q/drop-index-query query-params) ))

(defn create-table
  "Creates a new table. A table is a set of rows (usually

   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"
