aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
blob: d316aba939214e9abf4809de7b8158f80d1a105d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!--
SPDX-FileCopyrightText: 2026 Stefan Majewsky <majewsky@gmx.net>
SPDX-License-Identifier: Apache-2.0
-->

# v0.5.0 (2026-05-08)

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:

- Return `None` instead of `sql.ErrNoRows` from `Store.SelectOne...` functions.

# v0.3.0 (2026-04-30)

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.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:

- Add `func StructTagKeyIs()`.

# v0.1.0 (2026-04-18)

Initial release. This release has code quality worthy of a 1.x version number,
but I want to test it in real applications first before committing to API stability.