Skip to content

Commit

Permalink
document #352 in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Feb 3, 2022
1 parent 1f2773b commit 04324d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 04324d5

Please sign in to comment.