diff --git a/src/clj/commiteth/db/usage_metrics.clj b/src/clj/commiteth/db/usage_metrics.clj new file mode 100644 index 0000000..545fae3 --- /dev/null +++ b/src/clj/commiteth/db/usage_metrics.clj @@ -0,0 +1,10 @@ +(ns commiteth.db.usage-metrics + (:require [commiteth.db.core :refer [*db*] :as db] + [clojure.java.jdbc :as jdbc] + [clojure.tools.logging :as log])) + +(defn usage-metrics-by-day + ([] (usage-metrics-by-day 30)) + ([limit-days] + (jdbc/with-db-connection [con-db *db*] + (db/usage-metrics-by-day {:limit_days limit-days}))))