Mention how to disable paremeterization

This commit is contained in:
Yehonathan Sharvit 2020-12-15 14:21:07 +02:00 committed by GitHub
parent 4436932ed9
commit 94765ca7db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,6 +66,13 @@ to jdbc:
(jdbc/query conn (sql/format sqlmap))
```
If you want to format the query as a string with no parameters (e.g. to use the SQL statement in a SQL console), pass `:parameterizer :none` to the `sql/format`:
```clj
(sql/format sqlmap :parameterizer :none)
=> ["SELECT a, b, c FROM foo WHERE f.a = baz"]
```
### `build`
You can build up SQL maps yourself or use helper functions. `build` is the Swiss Army Knife helper. It lets you leave out brackets here and there: