Skip to content

Instantly share code, notes, and snippets.

@swlkr
Last active February 4, 2017 21:44
Show Gist options
  • Save swlkr/f845f55c1e451e47bb288b8817dff616 to your computer and use it in GitHub Desktop.
Save swlkr/f845f55c1e451e47bb288b8817dff616 to your computer and use it in GitHub Desktop.
create
(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