From 71ea50eff845b3e6f2404c9f3388ad8ccb6581cc Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Thu, 2 Jul 2020 09:39:23 -0700 Subject: [PATCH] Clarify get-by-id example per Vincent Cantin --- doc/friendly-sql-functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/friendly-sql-functions.md b/doc/friendly-sql-functions.md index 565a079..1a8427b 100644 --- a/doc/friendly-sql-functions.md +++ b/doc/friendly-sql-functions.md @@ -163,9 +163,9 @@ Given a table name (as a keyword) and a primary key value, with an optional prim ```clojure (sql/get-by-id ds :address 2) ;; equivalent to -(sql/get-by-id ds :address 2 {}) +(sql/get-by-id ds :address 2 {}) ; empty options map ;; equivalent to -(sql/get-by-id ds :address 2 :id {}) +(sql/get-by-id ds :address 2 :id {}) ; empty options map ;; equivalent to (jdbc/execute-one! ds ["SELECT * FROM address WHERE id = ?" 2]) ```