Make Transactable extensible via metadata

This is the only missing piece for a metadata-based no-op "component".
This commit is contained in:
vemv 2022-08-01 03:28:38 +02:00
parent 7d5ee09e79
commit ae9ffd9a09

View file

@ -54,7 +54,7 @@
(prepare ^java.sql.PreparedStatement [this sql-params opts] (prepare ^java.sql.PreparedStatement [this sql-params opts]
"Produce a new `java.sql.PreparedStatement` for use with `with-open`.")) "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. "Protocol for running SQL operations in a transaction.
Implementations are provided for `Connection`, `DataSource`, and `Object` Implementations are provided for `Connection`, `DataSource`, and `Object`