Skip to content

v0.2.0

Latest

Choose a tag to compare

@felipeg48 felipeg48 released this 28 Oct 13:09
· 7 commits to main since this release
94dc710

Validate follower-read staleness and fail fast; custom staleness through every adapter.

  • New FollowerReadClause(d) (string, error) gate: 0 → follower_read_timestamp(), >0 → '-Xs', <0 → error.
  • BREAKING: FollowerReadWithStaleness(d) now returns (string, error) and rejects d<=0 (previously emitted invalid SQL).
  • New custom-staleness adapter methods (pgx/sqlx QueryFollowerReadAs etc.; gorm scope errors on invalid staleness).

See CHANGELOG.md.