Update README to have an example of doing quoted function calls.
This commit is contained in:
parent
780fa126b5
commit
09670c8e1f
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -249,6 +249,16 @@ To be able to use dashes in quoted names, you can pass ```:allow-dashed-names tr
|
||||||
=> ["SELECT \"f\".\"foo-id\", \"f\".\"foo-name\" FROM \"foo-bar\" \"f\" WHERE \"f\".\"foo-id\" = 12345"]
|
=> ["SELECT \"f\".\"foo-id\", \"f\".\"foo-name\" FROM \"foo-bar\" \"f\" WHERE \"f\".\"foo-id\" = 12345"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
In some cases, you may want to quote function calls. To do this, you can use the
|
||||||
|
```sql/call-quoted``` function instead of the ```sql/call``` function.
|
||||||
|
|
||||||
|
```clj
|
||||||
|
(sql/format
|
||||||
|
{:select (sql/quoted-call :my-schema.some-function 1 2 3)}
|
||||||
|
:quoting :ansi :allow-quoted-names? true)
|
||||||
|
=> ["SELECT \"my-schema\".\"some-function\"(1, 2, 3)"]
|
||||||
|
```
|
||||||
|
|
||||||
Here's a big, complicated query. Note that Honey SQL makes no attempt to verify that your queries make any sense. It merely renders surface syntax.
|
Here's a big, complicated query. Note that Honey SQL makes no attempt to verify that your queries make any sense. It merely renders surface syntax.
|
||||||
|
|
||||||
```clj
|
```clj
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue