Skip to content

v0.1.2

Latest

Choose a tag to compare

@apstndb apstndb released this 12 Jun 09:50
e288bab

Patch release since v0.1.1.

Fixed

  • Slice type inference honors element WithGoType registrations (#1 / #2, found by spanpg as the first external consumer of the injection options): TypeFor[[]big.Rat](WithGoType[big.Rat](PGNumeric)) now returns ARRAY<PG_NUMERIC>, matching what ValueOf already produced. Precedence is identical on both sides: exact []T registration > element registration > client mirror. With no options nothing changes (pinned). Consumers can drop slice-type registration workarounds.

Added

  • WithTypedValueEncoder[T](typ, f) (#3) — the pre-composed WithValueEncoder + WithGoType pair, surveyed from spanpg's EncodeOptions (encoder registrations almost always want both halves).

Requirements

Unchanged from v0.1.1: spanvalue v0.7.3+ (v0.7.4+ for writer.WriteRowSeq streaming), spanner v1.84.1 MVS floor (mirrored semantics track v1.91.0), Go 1.24+.