mention that :ansi quoting is for postgres
This commit is contained in:
parent
74669d62b5
commit
23659e94bc
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue