diff --git a/README.md b/README.md index c4ed4db..3e819dd 100644 --- a/README.md +++ b/README.md @@ -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: