Mention how to disable paremeterization
This commit is contained in:
parent
4436932ed9
commit
94765ca7db
1 changed files with 7 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue