document #352 in readme
This commit is contained in:
parent
1f2773bd16
commit
04324d5002
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
|
@ -574,6 +574,17 @@ regular function calls in a select:
|
||||||
=> ["SELECT MAX(id) FROM foo"]
|
=> ["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
|
### Bindable parameters
|
||||||
|
|
||||||
Keywords that begin with `?` are interpreted as bindable parameters:
|
Keywords that begin with `?` are interpreted as bindable parameters:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue