improve docstring formatting
This commit is contained in:
parent
1c56645e62
commit
4104832be3
1 changed files with 2 additions and 0 deletions
|
|
@ -346,10 +346,12 @@
|
||||||
This allows you to write generic, `Connection`-based code without
|
This allows you to write generic, `Connection`-based code without
|
||||||
needing to know the exact type of an incoming datasource:
|
needing to know the exact type of an incoming datasource:
|
||||||
|
|
||||||
|
```clojure
|
||||||
(on-connection [conn datasource]
|
(on-connection [conn datasource]
|
||||||
(let [metadata (.getMetadata conn)
|
(let [metadata (.getMetadata conn)
|
||||||
catalog (.getCatalog conn)]
|
catalog (.getCatalog conn)]
|
||||||
...))
|
...))
|
||||||
|
```
|
||||||
|
|
||||||
If passed a `Connection` or a `Connectable` that wraps a `Connection`,
|
If passed a `Connection` or a `Connectable` that wraps a `Connection`,
|
||||||
then that `Connection` is used as-is.
|
then that `Connection` is used as-is.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue