From 4b81a42b4ddd74c8702324d4d8bf8b7ba94d2c1f Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Mon, 1 Apr 2019 23:22:59 -0700 Subject: [PATCH] Allow Sourceable to be overridden via metadata --- src/next/jdbc/protocols.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/next/jdbc/protocols.clj b/src/next/jdbc/protocols.clj index 7640937..ec42e3f 100644 --- a/src/next/jdbc/protocols.clj +++ b/src/next/jdbc/protocols.clj @@ -29,8 +29,8 @@ (set! *warn-on-reflection* true) -(defprotocol Sourceable - (get-datasource ^javax.sql.DataSource [this])) +(defprotocol Sourceable :extend-via-metadata true + (get-datasource ^javax.sql.DataSource [this] "Turn this into a javax.sql.DataSource.")) (defprotocol Connectable (get-connection ^java.lang.AutoCloseable [this opts])) (defprotocol Executable