Skip to content

Releases: Stumble/sqlc

v2.1.4

18 Feb 19:14
Compare
Choose a tag to compare
support pointer-type (nullable) query parameters for cache and invali…

v2.1.3

16 Feb 22:32
Compare
Choose a tag to compare
sqlc-fix: allow runtime version

Rebase upstream

16 Feb 22:28
Compare
Choose a tag to compare
Rebase upstream Pre-release
Pre-release
v2.1.2

re-gen needle example

BREAKING: Queries struct stop using interface for cache.

14 Feb 17:45
Compare
Choose a tag to compare

DCache upgraded to return *DCache instead of the Cache
interface in its New() function at some point. Since then,
User might pass a pointer of (nil)(*dcache.DCache) to Queries,
which is not a nil interface but an interface holding an nil
poitner. This makes the internal nil check failed to catch.

There are many solutions:

  1. Keep it like this, and user must be careful not to pass nil pointer.
    Because go is not null-safe, there is no compilation-time check for
    this. Then if unit-test coverage is low, user will run into this issue
    on production, and panic.
  2. DCache returns interface: no not supported. Besides it may still have
    the above issue, just unlikely.
  3. Abandon cache interface, use concrete struct. The tradeoff is that
    we can no longer inject other cache implementation, whichi might be
    a useful feature during testings. However, I have never seen this
    in real life so it might be YAGNI.

So we choosed (3) as the final solution.

Use hash as cache key if too long.

09 Feb 19:50
Compare
Choose a tag to compare
Pre-release
Misc fix.

1. stricter check to prohibit invalidate query with pointer field args.
2. fix missing ':' for single param query invalidation.

v2.0.2

08 Feb 23:27
Compare
Choose a tag to compare
fix: wpgx telemetry label use unique name

v2.0.1

30 Jan 00:11
Compare
Choose a tag to compare
fix: dumper will not try to sort by non-orderable columns like JSON

v2.0.0

29 Jan 19:21
Compare
Choose a tag to compare
update wpgx version