From f79d61a9eef42a05aca6f4ddb8d95192549036a5 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Fri, 8 May 2026 16:52:45 +0200 Subject: allow both None or ErrNoRows in SelectOne{,Where} The None-returning style is more convenient when the application needs to genuinely behave differently in this case, e.g. returning 404 from an HTTP API endpoint (instead of 500 for a generic database error). The ErrNoRows-returning style is more convenient when control flow is not different for this case vs. other error cases. --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 4495d62..af2aa55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ SPDX-FileCopyrightText: 2026 Stefan Majewsky SPDX-License-Identifier: Apache-2.0 --> +# v0.5.0 + +API changes: + +- Offer both `None`-returning and `sql.ErrNoRows`-returning variants for `Store.SelectOne...` functions. + Testing in real-world application code indicates that both return signatures have their uses. + # v0.4.0 (2026-05-04) API changes: -- cgit v1.2.3