From 4104832be3bef01face2d1380aad415367519323 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Tue, 5 Apr 2022 13:49:37 -0700 Subject: [PATCH] improve docstring formatting --- src/next/jdbc.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/next/jdbc.clj b/src/next/jdbc.clj index 5bb518f..ba045d6 100644 --- a/src/next/jdbc.clj +++ b/src/next/jdbc.clj @@ -346,10 +346,12 @@ This allows you to write generic, `Connection`-based code without needing to know the exact type of an incoming datasource: +```clojure (on-connection [conn datasource] (let [metadata (.getMetadata conn) catalog (.getCatalog conn)] ...)) +``` If passed a `Connection` or a `Connectable` that wraps a `Connection`, then that `Connection` is used as-is.