Checkpoint on improvemenths.

This commit is contained in:
Bryce Covert
2017-12-08 08:01:37 -08:00
parent ef4dd52a42
commit dc5eb781a9
3 changed files with 19 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
(ns auto-ap.db.invoices
(:require [clojure.java.jdbc :as j]
[auto-ap.db.utils :use [clj->db db->clj conn]]))
[auto-ap.db.utils :refer [clj->db db->clj conn]]))
(defn insert-multi! [rows]
(j/insert-multi! conn
@@ -10,3 +10,7 @@
(defn get-all []
(map db->clj (j/query conn "SELECT * FROM invoices")))
(defn get-pending []
(println conn)
(map db->clj (j/query conn "SELECT * FROM invoices WHERE imported=0")))