Merge pull request #287 from viebel/patch-1

Mention in the README how to disable paremeterization
This commit is contained in:
Sean Corfield 2020-12-15 10:14:18 -08:00 committed by GitHub
commit 7c5ec5c953
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: