From ae9ffd9a0911605fd17a95c0859c77ced984d239 Mon Sep 17 00:00:00 2001 From: vemv Date: Mon, 1 Aug 2022 03:28:38 +0200 Subject: [PATCH] Make Transactable extensible via metadata This is the only missing piece for a metadata-based no-op "component". --- src/next/jdbc/protocols.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/next/jdbc/protocols.clj b/src/next/jdbc/protocols.clj index 22aa209..cc4e71f 100644 --- a/src/next/jdbc/protocols.clj +++ b/src/next/jdbc/protocols.clj @@ -54,7 +54,7 @@ (prepare ^java.sql.PreparedStatement [this sql-params opts] "Produce a new `java.sql.PreparedStatement` for use with `with-open`.")) -(defprotocol Transactable +(defprotocol Transactable :extend-via-metadata true "Protocol for running SQL operations in a transaction. Implementations are provided for `Connection`, `DataSource`, and `Object`