aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b56ec45..781348e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,19 +5,23 @@ SPDX-License-Identifier: Apache-2.0
# v0.3.0 (TBD)
-Changes:
+API changes:
- All `Store` methods that run DB operations now take a `context.Context` argument.
The previous decision to avoid `ctx` arguments was based on benchmarking using `b.Context()`,
where it turns out that we just benchmarked those particular stacked contexts being inefficient.
- `Store.Insert()` now takes its arguments by-pointer. This is probably slightly less efficient,
but significantly safer because autogenerated field values cannot be disregarded by accident.
-- Add `Store.Update()`.
+- Add `Store.Upsert()`.
- Removed support for SQL dialects that rely on LastInsertId() for ID columns.
Using a RETURNING clause to collect autogenerated field values is better in many ways,
and has been supported by both MariaDB and SQLite for at least six years.
In practice, this only drops support specifically for Oracle MySQL.
+Other changes:
+
+- Removed an unnecessary memory allocation and copy within `Select()` and `SelectWhere()`.
+
# v0.2.0 (2026-04-18)
Changes: