   (cc/execute session
               (apply new-query-api/insert query-params)))
 
-(defn insert-async
-  "Same as insert but returns a future"
-  [^Session session & query-params]
-  (cc/async
-   (apply insert session query-params)))
-
 ;; (defn ^:private batch-query-from-
 ;;   [table records]
 ;;   (->> records

;; 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,
