mention that :ansi quoting is for postgres

This commit is contained in:
Justin Kramer 2013-08-06 16:17:05 -04:00
parent 74669d62b5
commit 23659e94bc
2 changed files with 3 additions and 3 deletions

View file

@ -120,7 +120,7 @@ There are helper functions and data literals for SQL function calls, field quali
=> ["SELECT FOO(bar), foo.a, @var := foo.bar FROM foo WHERE a = ?" "BAZ"]
```
To quote identifiers, pass the `:quoting` keyword option to `format`. Valid options are `:ansi`, `:mysql`, or `:sqlserver`:
To quote identifiers, pass the `:quoting` keyword option to `format`. Valid options are `:ansi` (PostgreSQL), `:mysql`, or `:sqlserver`:
```clj
(-> (select :foo.a)

View file

@ -147,8 +147,8 @@
Instead of passing parameters, you can use keyword arguments:
:params - input parameters
:quoting - quoting styling to use for identifiers; one of :ansi,
:mysql, or :sqlserver"
:quoting - quote style to use for identifiers; one of :ansi (PostgreSQL),
:mysql, or :sqlserver. Defaults to no quoting."
[sql-map & params-or-opts]
(let [opts (when (keyword? (first params-or-opts))
(apply hash-map params-or-opts))