Last active
February 4, 2017 21:44
-
-
Save swlkr/f845f55c1e451e47bb288b8817dff616 to your computer and use it in GitHub Desktop.
create
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns proj.records | |
(:require [yesql.core :refer [defqueries]])) | |
(defqueries "records.sql") | |
(defn create! [body] | |
(-> body | |
validate | |
db/insert-record<!)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment