From 7268767b6a270d4f5a5f094eb23170ca8d352e1d Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 13 May 2026 11:00:12 +0200 Subject: TODO: oblast.SqlHandle[] is inconvenient to use --- handle.go | 1 + 1 file changed, 1 insertion(+) (limited to 'handle.go') diff --git a/handle.go b/handle.go index bb251bb..2d79ea4 100644 --- a/handle.go +++ b/handle.go @@ -17,6 +17,7 @@ import ( type Handle = handle.Handle // SqlHandle wraps types like [*sql.DB] or [*sql.Tx] into a [Handle] that can be used with Oblast. +// TODO: separate types for wrapped *sql.DB and wrapped *sql.Tx, so we can have those types as embedded fields and forward method implementations type SqlHandle[T SqlExecutor] struct { // The original database or transaction handle. // It is safe to read this field to execute operations that Oblast does not handle (e.g. transactions, savepoints or OLAP queries). -- cgit v1.2.3