From a561ebb42148c72638f943e44191da07c16df7f6 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 13 May 2026 01:11:30 +0200 Subject: return a concrete type from Wrap() to enable non-Oblast DB operations --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f0aa71..a260a2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ SPDX-License-Identifier: Apache-2.0 # v0.8.0 (TBD) +API changes: + +- `Wrap` now returns a struct type `SqlHandle` instead of the interface type `Handle`. + This enables reaching into the `SqlHandle` and getting the original `*sql.DB` and `*sql.Tx` back out, + which is more ergonomic in situations where Oblast loads/stores need to be mixed with other types of DB operations. + Changes: - Insert, Upsert, Update and Delete will no longer panic when one of the fields they need to access is within a pointer-to-struct that is nil. -- cgit v1.2.3