 
 
 (defn delete
-  "Delete dataset with id"
   [tenant-conn id]
   (let [c (delete-dataset-by-id tenant-conn {:id id})]
     (if (zero? c)

            order-by-expr)))

(defn fetch-metadata
  "Fetch dataset metadata (everything apart from rows) with id"
  [conn id]
  (if-let [dataset (dataset-by-id conn {:id id})]
    (let [columns (remove #(get % "hidden") (:columns dataset))]

(hugsql/def-db-fns "akvo/lumen/job-execution.sql")

(defn all
  [tenant-conn]
  (lib/ok (all-datasets tenant-conn)))

(defn create
  [tenant-conn config error-tracker claims data-source]
  (import/handle-import-request tenant-conn config error-tracker claims data-source))

