From d0f3068f3fcd547381a0d862fd55f9bed2dc5b9d Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sat, 30 Jan 2021 11:00:22 -0800 Subject: [PATCH] Minor README update around raw --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eae23aa..7f05325 100644 --- a/README.md +++ b/README.md @@ -381,14 +381,13 @@ will not be lifted out as parameters, so they end up in the SQL string as-is. Raw SQL can also be supplied as a vector of strings and values. Strings are rendered as-is into the formatted SQL string. Non-strings are lifted as -parameters. If you need a string parameter lifted, you must use `:param` -or the `param` helper. +parameters. If you need a string parameter lifted, you must use `:param`. ```clojure (-> (select :*) (from :foo) (where [:< :expired_at [:raw ["now() - '" 5 " seconds'"]]]) - (sql/format {:foo 5})) + (sql/format)) => ["SELECT * FROM foo WHERE expired_at < now() - '? seconds'" 5] ```