Add missed file

This commit is contained in:
Teemu Patja 2017-04-06 22:59:50 +03:00
parent f391330f58
commit 0f3f06c19a
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 10 additions and 0 deletions

View File

@ -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}))))