From 04324d5002489fb7eb55f5d7d4539ef5859c99e0 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Wed, 2 Feb 2022 22:34:21 -0800 Subject: [PATCH] document #352 in readme --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index f31e991..18f995d 100644 --- a/README.md +++ b/README.md @@ -574,6 +574,17 @@ regular function calls in a select: => ["SELECT MAX(id) FROM foo"] ``` +If a keyword begins with `'`, the function name is treated literally +without being converted to uppercase (and without hyphens `-` becoming +spaces): + +```clojure +(-> (select :*) (from :foo) + (where [:'my-schema.SomeFunction :bar 0]) + (sql/format)) +=> ["SELECT * FROM foo WHERE my-schema.SomeFunction(bar, ?)" 0] +``` + ### Bindable parameters Keywords that begin with `?` are interpreted as bindable parameters: