 ;;   (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]

;; Higher-level helper functions for schema
;;

;; (defn describe-keyspace
;;   "Returns a keyspace description, taken from `system.schema_keyspaces`."
;;   [^Session session ks]
;;   (assert (not cc/*prepared-statement*) "Describe Keyspace query can't be executed as a prepared query")
;;   (first
;;    (select session :system.schema_keyspaces
;;            (q/where {:keyspace_name (name ks)}))))

;; (defn describe-table
;;   "Returns a table description, taken from `system.schema_columnfamilies`."
;;   [^Session session ks table]
;;   (assert (not cc/*prepared-statement*) "Describe Table query can't be executed as a prepared query")
;;   (first
;;    (select session :system.schema_columnfamilies
;;            (q/where {:keyspace_name (name ks)
;;                      :columnfamily_name (name table)}))))

;; (defn describe-columns
;;   "Returns table columns description, taken from `system.schema_columns`."
;;   [^Session session ks table]
;;   (assert (not cc/*prepared-statement*) "Describe Columns query can't be executed as a prepared query")
;;   (select session :system.schema_columns
;;           (q/where {:keyspace_name (name ks)
;;                     :columnfamily_name (name table)})))

;;
;; Higher-level collection manipulation
;;

  (cc/execute session
              (apply new-query-api/delete (cons table query-params))))

(defn select
  "Retrieves one or more columns for one or more rows in a table.
   It returns a result set, where every row is a collection of columns returned by the query."
  [^Session session & query-params]
  (cc/execute session
              (apply new-query-api/select query-params)))

(defn truncate
  "Truncates a table: permanently and irreversably removes all rows from the table,
