Skip to content

1.17.0

Choose a tag to compare

@smyrgeorge smyrgeorge released this 26 Oct 19:52
· 86 commits to main since this release

sqlx4k 1.17.0

A reliability release: 84 fixes across every driver, the migrator, the code generator and PGMQ, plus stoppable LISTEN, batch writes on every dialect and a dependencyScope option for the Gradle plugin.

⚠️ Before upgrading

  • batchInsert / batchUpdate now return the affected row count (Result<Long>), not the entities. Generated ids and bumped versions are no longer returned.
  • listen() suspends while listening: run it in its own coroutine and cancel it to stop.
  • Non-null array decoders (asStringList, …) fail on NULL elements; use asNullableStringList().
  • In-memory repositories stub queries with joins, DISTINCT, grouping, LIMIT or ORDER BY.
  • JVM MySQL: unknown URL properties are rejected, and sessions use UTC.
  • PGMQ topic routing requires pgmq ≥ 1.11.0 (the bundled SQL scripts are removed).
  • SQLite stores LocalTime/LocalDateTime with seconds always written.

✨ Highlights

  • Stoppable PostgreSQL LISTEN, with no leaked connections (also fixes PgmqConsumer).
  • batchInsert / batchUpdate on MySQL and MariaDB.
  • Gradle plugin: dependencyScope = Api.
  • In-memory repositories support stream methods.

🐛 Fixes (selection)

  • No more native process aborts on valid PostgreSQL/MySQL values or malformed URLs.
  • Connections and transactions are cleaned up on cancellation and close, on every driver.
  • No deadlocks or stalls in JVM/Android SQLite and SQLCipher under load.
  • Migrations: large files, ? operators, trigger bodies and MySQL dump comments all work.
  • MySQL: stale versioned updates are detected; JVM URL options (SSL, port) are honoured.
  • PGMQ consumer: no double handling, no crash on listen failure.

Full list of changes: 1.16.1...1.17.0

Migrations

✅ No database migrations required.