Skip to content

1.16.0

Choose a tag to compare

@smyrgeorge smyrgeorge released this 15 Oct 19:58
· 191 commits to main since this release

sqlx4k 1.16.0

Highlights

  • Generated ids: executeWithResult() returns rowsAffected + lastInsertId (MySQL, SQLite, SQLCipher). Closes #182.
  • Streaming queries: streamAll… repository methods return Flow<T>, with an optional @Query(fetchSize = …).
  • Exact decimals: NUMERIC/decimal decoding on every driver, including binary NUMERIC and NUMERIC[] on native PostgreSQL (#184).

Fixes

  • Native PostgreSQL: binary NUMERIC decoding, no panic on undecodable columns (#184, thanks @zoujiaqing)
  • Native SQLite/SQLCipher: no crash on NUL bytes or invalid UTF-8 in text
  • Native MySQL: _bin collated text no longer hex-encoded; generated insert()/update() fixed (error 1064)
  • JVM MySQL: binary columns returned as bytes; JVM PG/MySQL pool timeouts mapped to PoolTimedOut
  • Android SQLite: several connection-pool concurrency fixes

Upgrade notes

  • SQLite REAL values use shortest form ("1", not "1.00").
  • JVM SQLite now uses HikariCP; its minimum timeouts apply.

No breaking API changes.

Full changelog: 1.15.0...1.16.0